[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72=mL45_xJBmQNzaXtP3v317ZbQthH2g5rAH3tw3U6uovg@mail.gmail.com>
Date: Tue, 21 Jan 2025 22:47:23 +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>
Cc: <stable@...r.kernel.org> # Needed in 6.12.y only (Rust is pinned
in older LTSs).
And while there was nothing wrong back then with the commit, as usual:
Fixes: 7f8977a7fe6d ("rust: init: add `{pin_}chain` functions to
`{Pin}Init<T, E>`")
Cheers,
Miguel
Powered by blists - more mailing lists