Re: [PATCH] objtool/rust: add one more `noreturn` Rust function for Rust 1.99.0

Miguel Ojeda <[email protected]> Mon, 3 Aug 2026 08:03:54 +0200
Newsgroups org.kernel.vger.rust-for-linux,org.kernel.vger.stable
Message-ID <CANiq72mLq4B530DKYf=tnb4zvaKQx_zVWRBY2+ARDwxMn64iNQ@mail.gmail.com>
On Tue, Jul 28, 2026 at 9:15=E2=80=AFPM Miguel Ojeda <[email protected]> wro=
te:
>
> Starting with Rust 1.99.0 (expected 2026-10-01), `objtool` may report:
>
>     rust/kernel.o: warning: objtool: _R..._6kernel3str9parse_intaNtNtB2_7=
private12FromStrRadix14from_str_radix()
>     falls through to next function _R..._6kernel3str9parse_intaNtNtB2_7pr=
ivate12FromStrRadix16from_u64_negated()
>
> due to calls to the `noreturn` symbol:
>
>     core::num::from_ascii_bytes_radix_panic
>
> The function was renamed from `from_ascii_radix_panic` [1], which is
> already in the list.
>
> Thus add the new one to the list so that `objtool` knows it is actually
> `noreturn`.
>
> See commit 56d680dd23c3 ("objtool/rust: list `noreturn` Rust functions")
> for more details.
>
> Cc: [email protected] # Needed in 6.12.y and later (Rust is pinned i=
n older LTSs).
> Cc: Josh Poimboeuf <[email protected]>
> Cc: Peter Zijlstra <[email protected]>
> Link: https://github.com/rust-lang/rust/pull/159554 [1]
> Signed-off-by: Miguel Ojeda <[email protected]>

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

Cheers,
Miguel