diff options
author | Miguel Ojeda <ojeda@kernel.org> | 2025-04-13 02:23:38 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2025-04-14 17:02:49 +0200 |
commit | a3cd5f507b72c0532c3345b6913557efab34f405 (patch) | |
tree | 455a72c96137844c5825871bd744c1bbd3cc839d /rust/helpers/dma.c | |
parent | 46e24a545cdb4556f8128c90ecc34eeae52477a0 (diff) | |
download | linux-a3cd5f507b72c0532c3345b6913557efab34f405.tar.gz linux-a3cd5f507b72c0532c3345b6913557efab34f405.tar.bz2 linux-a3cd5f507b72c0532c3345b6913557efab34f405.zip |
objtool/rust: add one more `noreturn` Rust function for Rust 1.86.0
Starting with Rust 1.86.0 (see upstream commit b151b513ba2b ("Insert null
checks for pointer dereferences when debug assertions are enabled") [1]),
under some kernel configurations with `CONFIG_RUST_DEBUG_ASSERTIONS=y`,
one may trigger a new `objtool` warning:
rust/kernel.o: warning: objtool: _R..._6kernel9workqueue6system()
falls through to next function _R...9workqueue14system_highpri()
due to a call to the `noreturn` symbol:
core::panicking::panic_null_pointer_dereference
Thus add it to the list so that `objtool` knows it is actually `noreturn`.
See commit 56d680dd23c3 ("objtool/rust: list `noreturn` Rust functions")
for more details.
Cc: stable@vger.kernel.org # Needed in 6.12.y and later (Rust is pinned in older LTSs).
Fixes: 56d680dd23c3 ("objtool/rust: list `noreturn` Rust functions")
Link: https://github.com/rust-lang/rust/commit/b151b513ba2b65c7506ec1a80f2712bbd09154d1 [1]
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250413002338.1741593-1-ojeda@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/helpers/dma.c')
0 files changed, 0 insertions, 0 deletions