mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
rust: pin-init: add #[inline] to small functions
Currently `pin-init` crate is missing many inline annotations. They are all generic so still get inlined in normal builds, but are not inlined in `-C opt-level=s` build. Mark these functions as `#[inline]` so they are considered for inlining regardless. Signed-off-by: Gary Guo <gary@garyguo.net>
This commit is contained in:
parent
1f7fa1374d
commit
1e26aea035
4 changed files with 28 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue