Re: [PATCH] rust: init: use explicit ABI to clean warning in future compilers
From: Miguel Ojeda
Date: Wed Feb 05 2025 - 18:17:10 EST
On Tue, Jan 21, 2025 at 9:10 PM Miguel Ojeda <ojeda@xxxxxxxxxx> wrote:
>
> 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.
>
> Link: https://github.com/rust-lang/rust/pull/132397 [1]
> Signed-off-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
Applied to `rust-fixes` -- thanks everyone!
[ Added 6.13.y to Cc: stable tag. - Miguel ]
Cheers,
Miguel