[PATCH 0/2] Rust fixes for the upcoming 1.89 release

Miguel Ojeda posted 2 patches 2 months, 3 weeks ago
rust/Makefile           |  1 +
rust/kernel/firmware.rs |  2 +-
rust/kernel/kunit.rs    |  2 +-
rust/kernel/lib.rs      |  3 +++
rust/macros/module.rs   | 10 +++++-----
scripts/Makefile.build  |  3 ++-
tools/objtool/check.c   |  1 +
7 files changed, 14 insertions(+), 8 deletions(-)
[PATCH 0/2] Rust fixes for the upcoming 1.89 release
Posted by Miguel Ojeda 2 months, 3 weeks ago
A couple fixes for the upcoming 1.89.0 release, currently in beta.

With this, current nightly (1.90) gets also clean.

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/kunit.rs    |  2 +-
 rust/kernel/lib.rs      |  3 +++
 rust/macros/module.rs   | 10 +++++-----
 scripts/Makefile.build  |  3 ++-
 tools/objtool/check.c   |  1 +
 7 files changed, 14 insertions(+), 8 deletions(-)


base-commit: fe49aae0fcb348b656bbde2eb1d1c75d8a1a5c3c
--
2.50.1
Re: [PATCH 0/2] Rust fixes for the upcoming 1.89 release
Posted by Miguel Ojeda 2 months, 3 weeks ago
On Sat, Jul 12, 2025 at 6:01 PM Miguel Ojeda <ojeda@kernel.org> wrote:
>
> A couple fixes for the upcoming 1.89.0 release, currently in beta.
>
> With this, current nightly (1.90) gets also clean.

Applied to `rust-fixes` -- thanks everyone!

I am applying these now so that v6.16 is fine by the time the compiler
releases, giving how their release weeks will likely line up.

(Added Acked-by from Björn to the second patch he gave me after
discussing it in private -- thanks!)

Cheers,
Miguel