linux/rust/kernel
Miguel Ojeda c21bdb3d8a 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: <stable@vger.kernel.org> # Needed in 6.12.y and 6.13.y only (Rust is pinned in older LTSs).
Fixes: 7f8977a7fe ("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 <gary@garyguo.net>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Fiona Behrens <me@kloenk.dev>
Link: https://lore.kernel.org/r/20250121200934.222075-1-ojeda@kernel.org
[ Added 6.13.y to Cc: stable tag. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2025-02-06 00:15:49 +01:00
..
alloc rust: kernel: add improved version of `ForeignOwnable::borrow_mut` 2025-01-13 23:46:07 +01:00
block Rust changes for v6.14 2025-01-21 17:48:03 -08:00
fs
init
list rust: use derive(CoercePointee) on rustc >= 1.84.0 2025-01-13 23:45:30 +01:00
net Networking changes for 6.14. 2025-01-22 08:28:57 -08:00
sync Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
.gitignore
alloc.rs rust: use derive(CoercePointee) on rustc >= 1.84.0 2025-01-13 23:45:30 +01:00
block.rs
build_assert.rs rust: add `build_error!` to the prelude 2025-01-10 00:19:09 +01:00
cred.rs
device.rs Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
device_id.rs
devres.rs rust: devres: remove action in `Devres::drop` 2025-01-10 15:49:06 +01:00
driver.rs rust: driver: address soundness issue in `RegistrationOps` 2025-01-07 11:31:45 +01:00
error.rs rust: error: import `kernel`'s `LayoutError` instead of `core`'s 2025-01-13 23:45:13 +01:00
firmware.rs
fs.rs
generated_arch_static_branch_asm.rs.S
init.rs rust: init: use explicit ABI to clean warning in future compilers 2025-02-06 00:15:49 +01:00
io.rs
ioctl.rs
jump_label.rs
kunit.rs
lib.rs Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
list.rs
miscdevice.rs Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
net.rs
of.rs
page.rs rust: page: remove unnecessary helper function from doctest 2025-01-13 23:44:55 +01:00
pci.rs rust: driver: address soundness issue in `RegistrationOps` 2025-01-07 11:31:45 +01:00
pid_namespace.rs
platform.rs rust: driver: address soundness issue in `RegistrationOps` 2025-01-07 11:31:45 +01:00
prelude.rs rust: add `build_error!` to the prelude 2025-01-10 00:19:09 +01:00
print.rs
rbtree.rs rust: rbtree: remove unwrap in asserts 2025-01-13 23:44:29 +01:00
revocable.rs
security.rs
seq_file.rs
sizes.rs
static_assert.rs
std_vendor.rs
str.rs rust: str: replace unwraps with question mark operators 2025-01-13 23:45:05 +01:00
sync.rs Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
task.rs
time.rs
tracepoint.rs
transmute.rs
types.rs Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
uaccess.rs rust: uaccess: generalize userSliceReader to support any Vec 2025-01-13 23:46:23 +01:00
workqueue.rs Rust changes for v6.14 2025-01-21 17:48:03 -08:00