Mainline loongarch64 defconfig+Rust build error

From: Miguel Ojeda
Date: Tue Dec 09 2025 - 05:56:57 EST


Hi all,

I am seeing in mainline loongarch64 defconfig+Rust the following build
error [1].

Cheers,
Miguel

[1]

error[E0425]: cannot find value `compat_ptr_ioctl` in crate `bindings`
--> drivers/android/binder/rust_binder_main.rs:317:38
|
317 | compat_ioctl: Some(bindings::compat_ptr_ioctl),
| ^^^^^^^^^^^^^^^^ help: a
function with a similar name exists: `compat_sys_ioctl`
|
::: /__w/quick/quick/linux/rust/bindings/bindings_generated.rs:78264:5
|
78264 | pub fn compat_sys_ioctl(fd: ffi::c_uint, cmd: ffi::c_uint,
arg: compat_ulong_t) -> ffi::c_long;
| ----------------------------------------------------------------------------------------------
similarly named function `compat_sys_ioctl` defined here