aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2025-10-20 02:07:14 +0000
committerPeter Zijlstra <[email protected]>2025-10-22 13:21:54 +0000
commitdbdf2a7feb422f9bacfd12774e624cf26f503eb0 (patch)
treecf4b83836f8055e7202e65d1e63957836215bebe /scripts/basic/docproc.c
parentLinux 6.18-rc2 (diff)
downloadkernel-dbdf2a7feb422f9bacfd12774e624cf26f503eb0.tar.gz
kernel-dbdf2a7feb422f9bacfd12774e624cf26f503eb0.zip
objtool/rust: add one more `noreturn` Rust function
Between Rust 1.79 and 1.86, under `CONFIG_RUST_KERNEL_DOCTESTS=y`, `objtool` may report: rust/doctests_kernel_generated.o: warning: objtool: rust_doctest_kernel_alloc_kbox_rs_13() falls through to next function rust_doctest_kernel_alloc_kvec_rs_0() (as well as in rust_doctest_kernel_alloc_kvec_rs_0) due to calls to the `noreturn` symbol: core::option::expect_failed from code added in commits 779db37373a3 ("rust: alloc: kvec: implement AsPageIter for VVec") and 671618432f46 ("rust: alloc: kbox: implement AsPageIter for VBox"). Thus add the mangled one to the list so that `objtool` knows it is actually `noreturn`. This can be reproduced as well in other versions by tweaking the code, such as the latest stable Rust (1.90.0). Stable does not have code that triggers this, but it could have it in the future. Downstream forks could too. Thus tag it for backport. See commit 56d680dd23c3 ("objtool/rust: list `noreturn` Rust functions") for more details. Signed-off-by: Miguel Ojeda <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Cc: [email protected] # Needed in 6.12.y and later. Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions