oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [boqun:rust-atomic-impl 11/11] warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read_acquire`
@ 2025-07-17  7:29 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-07-17  7:29 UTC (permalink / raw)
  To: Boqun Feng; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git rust-atomic-impl
head:   9908e69eba39eeef235e409a753621914c6e8926
commit: 9908e69eba39eeef235e409a753621914c6e8926 [11/11] WIP: rust: sync: atomic: Wire up atomic_ptr_ helpers
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250717/202507171542.e9nQnSUg-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/20250717/202507171542.e9nQnSUg-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/202507171542.e9nQnSUg-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read_acquire`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_read_acquire` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_read` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_set_release`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_set_release` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_set`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_set` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg_acquire`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg_acquire` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg_release`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg_release` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg_relaxed`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg_relaxed` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_acquire`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_acquire` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_release`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_release` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_relaxed`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_relaxed` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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] 2+ messages in thread

* [boqun:rust-atomic-impl 11/11] warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read_acquire`
@ 2025-07-20 18:32 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-07-20 18:32 UTC (permalink / raw)
  To: Boqun Feng; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git rust-atomic-impl
head:   9908e69eba39eeef235e409a753621914c6e8926
commit: 9908e69eba39eeef235e409a753621914c6e8926 [11/11] WIP: rust: sync: atomic: Wire up atomic_ptr_ helpers
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250720/202507202029.J3vB76rD-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/20250720/202507202029.J3vB76rD-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/202507202029.J3vB76rD-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read_acquire`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_read_acquire` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_read` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_set_release`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_set_release` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_set`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ associated function `<*mut c_void as AtomicBasicOps>::atomic_set` is reachable at visibility `pub`
   ...
   215 | / declare_and_impl_atomic_methods!(
   216 | |     /// Basic atomic operations
   217 | |     pub trait AtomicBasicOps
   218 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   232 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg_acquire`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg_acquire` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg_release`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg_release` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg_relaxed`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg_relaxed` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_xchg`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_xchg` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_acquire`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_acquire` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_release`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_release` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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)
--
>> warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_relaxed`
   --> rust/kernel/sync/atomic/ops.rs:110:13
   |
   110 |               fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
   |               ^^ associated function `<*mut c_void as AtomicExchangeOps>::atomic_try_cmpxchg_relaxed` is reachable at visibility `pub`
   ...
   234 | / declare_and_impl_atomic_methods!(
   235 | |     /// Exchange and compare-and-exchange atomic operations
   236 | |     pub trait AtomicExchangeOps
   237 | |     [i32 => atomic, i64 => atomic64, *mut crate::ffi::c_void => atomic_ptr]
   ...   |
   261 | | );
   | |_- in this macro invocation
   |
   note: but type `AtomicRepr<*mut c_void>` is only usable at visibility `pub(in crate::sync::atomic)`
   --> rust/kernel/sync/atomic/ops.rs:50:1
   |
   50  | pub(super) struct AtomicRepr<T: AtomicImpl>(core::cell::UnsafeCell<T>);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this warning 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] 2+ messages in thread

end of thread, other threads:[~2025-07-20 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17  7:29 [boqun:rust-atomic-impl 11/11] warning: type `AtomicRepr<*mut c_void>` is more private than the item `<*mut c_void as AtomicBasicOps>::atomic_read_acquire` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-07-20 18:32 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).