diff options
| author | Alistair Francis <alistair.francis@wdc.com> | 2026-04-28 16:10:50 +0300 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2026-05-11 00:58:33 +0300 |
| commit | be7ea321a2d3a3d4151c9304f50fa1fe26487a81 (patch) | |
| tree | 6bf21bac9f1d31d98083adab71440ae9595e971b /include/linux | |
| parent | 5d6919055dec134de3c40167a490f33c74c12581 (diff) | |
| download | linux-be7ea321a2d3a3d4151c9304f50fa1fe26487a81.tar.xz | |
rust: pin-init: examples: mark as `#[inline]` all `From::from()`s for `Error`
There was a recent request in kernel [1] to mark as `#[inline]` the
simple `From::from()` functions implemented for `Error`.
Thus mark all of the existing
impl From<...> for Error {
fn from(err: ...) -> Self {
...
}
}
functions as `#[inline]`.
While in pin-init crate the relevant code is just examples, it
nevertheless does not hurt to use good practice for them.
Suggested-by: Gary Guo <gary@garyguo.net>
Link: https://lore.kernel.org/all/8403c8b7a832b5274743816eb77abfa4@garyguo.net/ [1]
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
[ Reworded commit message - Gary ]
Link: https://patch.msgid.link/20260428-pin-init-sync-v1-1-07f9bd3859fb@garyguo.net
Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
