Re: [PATCH] rust: Mark all from() for Error functions inline

From: Miguel Ojeda

Date: Thu Mar 19 2026 - 22:55:49 EST


On Fri, Mar 20, 2026 at 2:19 AM <alistair23@xxxxxxxxx> wrote:
>
> rust/kernel/alloc/kvec/errors.rs | 3 +++
> rust/kernel/error.rs | 6 ++++++
> rust/kernel/ptr/projection.rs | 2 +-
> rust/kernel/xarray.rs | 1 +
> rust/pin-init/examples/error.rs | 2 ++
> rust/pin-init/examples/pthread_mutex.rs | 2 ++
> rust/syn/error.rs | 1 +

Please Cc all the relevant maintainers and reviewers using e.g.
`scripts/get_maintainer.pl`.

The commit log also should explain why we mark them as such. It also
doesn't say that one `inline(always)` was lowered to `inline` as well
and why that would be preferred (or not).

Thanks!

Cheers,
Miguel