aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_target.rs
diff options
context:
space:
mode:
authorMiguel Ojeda <[email protected]>2025-01-21 20:09:34 +0000
committerMiguel Ojeda <[email protected]>2025-02-05 23:15:49 +0000
commitc21bdb3d8a850afdfa4afe77eea39ae9533629b0 (patch)
tree0b43d73bc7930c94d6f5d1c4a6edb62e70aeb6ee /scripts/generate_rust_target.rs
parentrust: kbuild: use host dylib naming in rusttestlib-kernel (diff)
downloadkernel-c21bdb3d8a850afdfa4afe77eea39ae9533629b0.tar.gz
kernel-c21bdb3d8a850afdfa4afe77eea39ae9533629b0.zip
rust: init: use explicit ABI to clean warning in future compilers
Starting with Rust 1.86.0 (currently in nightly, to be released on 2025-04-03), the `missing_abi` lint is warn-by-default [1]: error: extern declarations without an explicit ABI are deprecated --> rust/doctests_kernel_generated.rs:3158:1 | 3158 | extern { | ^^^^^^ help: explicitly specify the C ABI: `extern "C"` | = note: `-D missing-abi` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(missing_abi)]` Thus clean it up. Cc: <[email protected]> # Needed in 6.12.y and 6.13.y only (Rust is pinned in older LTSs). Fixes: 7f8977a7fe6d ("rust: init: add `{pin_}chain` functions to `{Pin}Init<T, E>`") Link: https://github.com/rust-lang/rust/pull/132397 [1] Reviewed-by: Gary Guo <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Fiona Behrens <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Added 6.13.y to Cc: stable tag. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions