[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANiq72kJu9Gxqg5MHUPW-RQaMj7Rz=3HAT1Kbc_d=aQx3QOSqw@mail.gmail.com>
Date: Thu, 6 Feb 2025 00:16:40 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Miguel Ojeda <ojeda@...nel.org>
Cc: Alex Gaynor <alex.gaynor@...il.com>, Boqun Feng <boqun.feng@...il.com>,
Gary Guo <gary@...yguo.net>, Björn Roy Baron <bjorn3_gh@...tonmail.com>,
Benno Lossin <benno.lossin@...ton.me>, Andreas Hindborg <a.hindborg@...nel.org>,
Alice Ryhl <aliceryhl@...gle.com>, Trevor Gross <tmgross@...ch.edu>, rust-for-linux@...r.kernel.org,
linux-kernel@...r.kernel.org, patches@...ts.linux.dev
Subject: Re: [PATCH] rust: init: use explicit ABI to clean warning in future compilers
On Tue, Jan 21, 2025 at 9:10 PM Miguel Ojeda <ojeda@...nel.org> 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@...nel.org>
Applied to `rust-fixes` -- thanks everyone!
[ Added 6.13.y to Cc: stable tag. - Miguel ]
Cheers,
Miguel
Powered by blists - more mailing lists