public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
@ 2025-09-13 14:00 kernel test robot
  2025-09-13 15:23 ` Boqun Feng
  0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2025-09-13 14:00 UTC (permalink / raw)
  To: Boqun Feng
  Cc: oe-kbuild-all, linux-kernel, x86, Peter Zijlstra, Alice Ryhl,
	Benno Lossin, Elle Rhumsaa

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250913/202509131610.IPwv7fy3-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250913/202509131610.IPwv7fy3-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509131610.IPwv7fy3-lkp@intel.com/

All errors (new ones prefixed by >>):

>> 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[E0425]: cannot find function `atomic_read` 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[E0425]: cannot find function `atomic_xchg_relaxed` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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)
   help: consider importing this function
   |
   7   + use core::intrinsics::atomic_xchg_relaxed;
   |
--
>> error[E0425]: cannot find function `atomic_xchg` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg_acquire` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg_release` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg_relaxed` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic64_xchg_acquire` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic64_xchg_release` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic64_xchg_relaxed` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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)
..

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
  2025-09-13 14:00 [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings` kernel test robot
@ 2025-09-13 15:23 ` Boqun Feng
  2025-09-15  7:33   ` Peter Zijlstra
  0 siblings, 1 reply; 7+ messages in thread
From: Boqun Feng @ 2025-09-13 15:23 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, linux-kernel, x86, Peter Zijlstra, Alice Ryhl,
	Benno Lossin, Elle Rhumsaa

Hi Peter,

On Sat, Sep 13, 2025 at 04:00:27PM +0200, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
> commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework

I think we are missing this patch:

	https://lore.kernel.org/rust-for-linux/20250905044141.77868-2-boqun.feng@gmail.com/

in locking/core. It should be applied before all atomic patches.

Regards,
Boqun

> config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250913/202509131610.IPwv7fy3-lkp@intel.com/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250913/202509131610.IPwv7fy3-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202509131610.IPwv7fy3-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> 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)
> --
[...]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
@ 2025-09-14  6:10 kernel test robot
  2025-09-15  7:32 ` Peter Zijlstra
  0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2025-09-14  6:10 UTC (permalink / raw)
  To: Boqun Feng
  Cc: llvm, oe-kbuild-all, linux-kernel, x86, Peter Zijlstra,
	Alice Ryhl, Benno Lossin, Elle Rhumsaa

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250914/202509141437.5iiM1sOF-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250914/202509141437.5iiM1sOF-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509141437.5iiM1sOF-lkp@intel.com/

All errors (new ones prefixed by >>):

>> 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[E0425]: cannot find function `atomic_read` 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[E0425]: cannot find function `atomic_xchg_relaxed` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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)
   help: consider importing this function
   |
   7   + use core::intrinsics::atomic_xchg_relaxed;
   |
--
>> error[E0425]: cannot find function `atomic_xchg` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg_acquire` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg_release` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg_relaxed` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic_try_cmpxchg` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic64_xchg_acquire` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic64_xchg_release` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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[E0425]: cannot find function `atomic64_xchg_relaxed` in crate `bindings`
   --> rust/kernel/sync/atomic/internal.rs:124:37
   |
   124 |                   $unsafe { bindings::[< $ctype _ $func >]($($c_arg,)*) }
   |                                       ^^^^^^^^^^^^^^^^^^^^ not found in `bindings`
   ...
   218 | / declare_and_impl_atomic_methods!(
   219 | |     /// Exchange and compare-and-exchange atomic operations
   220 | |     pub trait AtomicExchangeOps {
   221 | |         /// Atomic exchange.
   ...   |
   243 | | );
   | |_- 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)
..

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
  2025-09-14  6:10 kernel test robot
@ 2025-09-15  7:32 ` Peter Zijlstra
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Zijlstra @ 2025-09-15  7:32 UTC (permalink / raw)
  To: kernel test robot
  Cc: Boqun Feng, llvm, oe-kbuild-all, linux-kernel, x86, Alice Ryhl,
	Benno Lossin, Elle Rhumsaa

On Sun, Sep 14, 2025 at 02:10:26PM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
> commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework
> config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250914/202509141437.5iiM1sOF-lkp@intel.com/config)
> compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
> rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250914/202509141437.5iiM1sOF-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202509141437.5iiM1sOF-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
> >> 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)


Boqun, did I mess things up? I can rebase this tree, but I've no real
clue with this rust stuff.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
  2025-09-13 15:23 ` Boqun Feng
@ 2025-09-15  7:33   ` Peter Zijlstra
  2025-09-15  7:41     ` Peter Zijlstra
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Zijlstra @ 2025-09-15  7:33 UTC (permalink / raw)
  To: Boqun Feng
  Cc: kernel test robot, oe-kbuild-all, linux-kernel, x86, Alice Ryhl,
	Benno Lossin, Elle Rhumsaa

On Sat, Sep 13, 2025 at 08:23:01AM -0700, Boqun Feng wrote:
> Hi Peter,
> 
> On Sat, Sep 13, 2025 at 04:00:27PM +0200, kernel test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> > head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
> > commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework
> 
> I think we are missing this patch:
> 
> 	https://lore.kernel.org/rust-for-linux/20250905044141.77868-2-boqun.feng@gmail.com/
> 
> in locking/core. It should be applied before all atomic patches.

Ah, let me go fix things.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
  2025-09-15  7:33   ` Peter Zijlstra
@ 2025-09-15  7:41     ` Peter Zijlstra
  2025-09-16  0:13       ` Boqun Feng
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Zijlstra @ 2025-09-15  7:41 UTC (permalink / raw)
  To: Boqun Feng
  Cc: kernel test robot, oe-kbuild-all, linux-kernel, x86, Alice Ryhl,
	Benno Lossin, Elle Rhumsaa

On Mon, Sep 15, 2025 at 09:33:45AM +0200, Peter Zijlstra wrote:
> On Sat, Sep 13, 2025 at 08:23:01AM -0700, Boqun Feng wrote:
> > Hi Peter,
> > 
> > On Sat, Sep 13, 2025 at 04:00:27PM +0200, kernel test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> > > head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
> > > commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework
> > 
> > I think we are missing this patch:
> > 
> > 	https://lore.kernel.org/rust-for-linux/20250905044141.77868-2-boqun.feng@gmail.com/
> > 
> > in locking/core. It should be applied before all atomic patches.
> 
> Ah, let me go fix things.

I've no idea how that first patch went walk-about. But hopefully I got
it right now..

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings`
  2025-09-15  7:41     ` Peter Zijlstra
@ 2025-09-16  0:13       ` Boqun Feng
  0 siblings, 0 replies; 7+ messages in thread
From: Boqun Feng @ 2025-09-16  0:13 UTC (permalink / raw)
  To: Peter Zijlstra
  Cc: kernel test robot, oe-kbuild-all, linux-kernel, x86, Alice Ryhl,
	Benno Lossin, Elle Rhumsaa

On Mon, Sep 15, 2025 at 09:41:33AM +0200, Peter Zijlstra wrote:
> On Mon, Sep 15, 2025 at 09:33:45AM +0200, Peter Zijlstra wrote:
> > On Sat, Sep 13, 2025 at 08:23:01AM -0700, Boqun Feng wrote:
> > > Hi Peter,
> > > 
> > > On Sat, Sep 13, 2025 at 04:00:27PM +0200, kernel test robot wrote:
> > > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
> > > > head:   502ae97746ab6d7b7b48d54b6a85a11815f390d0
> > > > commit: eb57133305f61b612252382d0c1478bba7f57b67 [1/13] rust: sync: Add basic atomic operation mapping framework
> > > 
> > > I think we are missing this patch:
> > > 
> > > 	https://lore.kernel.org/rust-for-linux/20250905044141.77868-2-boqun.feng@gmail.com/
> > > 
> > > in locking/core. It should be applied before all atomic patches.
> > 
> > Ah, let me go fix things.
> 
> I've no idea how that first patch went walk-about. But hopefully I got
> it right now..

Yeah, tip/locking/core has the right version now, thank you! Of course,
tip/master needs an update ;-)

Regards,
Boqun

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-09-16  0:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-13 14:00 [tip:locking/core 1/13] error[E0425]: cannot find function `atomic_add` in crate `bindings` kernel test robot
2025-09-13 15:23 ` Boqun Feng
2025-09-15  7:33   ` Peter Zijlstra
2025-09-15  7:41     ` Peter Zijlstra
2025-09-16  0:13       ` Boqun Feng
  -- strict thread matches above, loose matches on Subject: below --
2025-09-14  6:10 kernel test robot
2025-09-15  7:32 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox