next-20250915: error[E0425]: cannot find function `atomic_read_acquire` in crate `bindings`
From: Naresh Kamboju
Date: Tue Sep 16 2025 - 01:48:19 EST
The following build warnings / errors noticed on the arm arm64 and x86_64
with rust config build on the Linux next-20250915 tag.
First seen on next-20250915
Good: next-20250912
Bad: next-20250915
Regression Analysis:
- New regression? yes
- Reproducibility? yes
* arm, build
- rustclang-lkftconfig-kselftest
- rustgcc-lkftconfig-kselftest
* arm64, build
- rustclang-lkftconfig-kselftest
- rustgcc-lkftconfig-kselftest
* x86_64, build
- rustgcc-lkftconfig-kselftest
- rustclang-nightly-lkftconfig-kselftest
Build regression: next-20250915: error[E0425]: cannot find function
`atomic_read_acquire` in crate `bindings`
Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
## Build log
error[E0425]: cannot find function `atomic_read_acquire` in crate `bindings`
--> rust/kernel/sync/atomic/internal.rs:124:37
|
124 | $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
| ^^^^^^^^^^^^^^^^^^^^ not
found in `bindings`
...
201 | / declare_and_impl_atomic_methods!(
202 | | /// Basic atomic operations
203 | | pub trait AtomicBasicOps {
204 | | /// Atomic read (load).
... |
216 | | );
| |_- in this macro invocation
|
= note: this error originates in the macro `impl_atomic_method`
which comes from the expansion of the macro
`declare_and_impl_atomic_methods` (in Nightly builds, run with -Z
macro-backtrace for more info)
error: aborting due to 34 previous errors
For more information about this error, try `rustc --explain E0425`.
make[3]: *** [rust/Makefile:553: rust/kernel.o] Error 1
## Source
* Kernel version: 6.17.0-rc6
* Git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/next/linux-next.git
* Git describe: 6.17.0-rc6-next-20250915
* Git commit: c3067c2c38316c3ef013636c93daa285ee6aaa2e
* Architectures: arm, arm64 and x86_64
* Toolchains: gcc (Debian 15.2.0-3) 15.2.0
* Kconfigs: rust config
## Build
* Build log: https://qa-reports.linaro.org/api/testruns/29894207/log_file/
* Build details:
https://regressions.linaro.org/lkft/linux-next-master/next-20250915/build/rustgcc-lkftconfig-kselftest/
* Build plan: https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/lkft/builds/32l4UDzp0FMtS73JeG3kWpcoQrm
* Build link: https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UDzp0FMtS73JeG3kWpcoQrm/
* Kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/32l4UDzp0FMtS73JeG3kWpcoQrm/config
--
Linaro LKFT