[GIT PULL] Rust fixes for 6.16 (2nd)
From: Miguel Ojeda
Date: Sat Jul 19 2025 - 06:31:58 EST
Hi Linus,
Please pull these fixes for Rust (second round).
All commits have been in linux-next for four rounds.
No conflicts expected.
Thanks!
Cheers,
Miguel
The following changes since commit 86731a2a651e58953fc949573895f2fa6d456841:
Linux 6.16-rc3 (2025-06-22 13:30:08 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-6.16-2
for you to fetch changes up to 7498159226772d66f150dd406be462d75964a366:
rust: use `#[used(compiler)]` to fix build and `modpost` with Rust >= 1.89.0 (2025-07-14 23:30:44 +0200)
----------------------------------------------------------------
Rust fixes for v6.16 (2nd)
Toolchain and infrastructure:
- Fix build and modpost confusion for the upcoming Rust 1.89.0 release.
- Clean objtool warning for the upcoming Rust 1.89.0 release by adding
one more noreturn function.
'kernel' crate:
- Fix build error when using generics in the 'try_{,pin_}init!' macros.
----------------------------------------------------------------
Janne Grunau (1):
rust: init: Fix generics in *_init! macros
Miguel Ojeda (2):
objtool/rust: add one more `noreturn` Rust function for Rust 1.89.0
rust: use `#[used(compiler)]` to fix build and `modpost` with Rust >= 1.89.0
rust/Makefile | 1 +
rust/kernel/firmware.rs | 2 +-
rust/kernel/init.rs | 8 ++++----
rust/kernel/kunit.rs | 2 +-
rust/kernel/lib.rs | 3 +++
rust/macros/module.rs | 10 +++++-----
scripts/Makefile.build | 3 ++-
tools/objtool/check.c | 1 +
8 files changed, 18 insertions(+), 12 deletions(-)