summaryrefslogtreecommitdiff
path: root/kernel/debug
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2026-11-14 01:17:08 +0100
committerMiguel Ojeda <ojeda@kernel.org>2026-11-17 07:17:46 +0100
commit1846c049cfe325abe0be8d1ea50eda16aa02d1a8 (patch)
tree2b1d39a4a91e4b5bd77f014a7bf9312b527a9f40 /kernel/debug
parentaebb7274476403040d582c61478df8f4a7bf9cd3 (diff)
objtool/rust: add more `noreturn` Rust functions for Rust 1.101.0
Starting with Rust 1.101.0 (expected 2026-12-24), `objtool` may report: rust/kernel.o: warning: objtool: _R..._6kernel3pci2ioINtB7_6DeviceNtNtB9_6device5BoundE8cfg_size() falls through to next function _R..._6kernel3oppNtB5_3OPP18from_raw_opp_owned() (and others) due to calls to the `noreturn` symbol: core::panicking::unreachable_default_msg Rust now outlines the constant messages of the panicking macros [1], thus `unreachable!()` (i.e. without arguments) calls that new function instead of `core::panicking::panic`, which is already in the list. The same change introduced the equivalent `noreturn` functions for `panic!()`, `todo!()` and `unimplemented!()`, which lead to the same warning when those are used: core::panicking::panic_default_msg core::panicking::todo_default_msg core::panicking::unimplemented_default_msg Thus add the mangled ones to the list so that `objtool` knows they are actually `noreturn`. See commit 56d680dd23c3 ("objtool/rust: list `noreturn` Rust functions") for more details. Cc: stable@vger.kernel.org # 6.12.x (Rust is pinned in older LTSs) Cc: Josh Poimboeuf <jpoimboe@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://github.com/rust-lang/rust/pull/163766 [1] Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20261114001708.80599-1-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions