diff options
| author | Boqun Feng <boqun.feng@gmail.com> | 2025-10-21 23:53:22 -0400 |
|---|---|---|
| committer | Boqun Feng <boqun.feng@gmail.com> | 2025-11-12 08:56:38 -0800 |
| commit | 14e9a18b07ec463a85094cc8942788336164319f (patch) | |
| tree | 1974732e3fc5d1633a4c08378617826f345f824e /rust/kernel | |
| parent | b94d45b6bbb42571ec225d3be0e7457c8765a5b4 (diff) | |
rust: sync: atomic: Make Atomic*Ops pub(crate)
In order to write code over a generate Atomic<T> we need to make
Atomic*Ops public so that functions like `.load()` and `.store()` are
available. Make these pub(crate) at the beginning so the usage in kernel
crate is supported.
Tested-by: David Gow <davidgow@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251022035324.70785-2-boqun.feng@gmail.com
Diffstat (limited to 'rust/kernel')
| -rw-r--r-- | rust/kernel/sync/atomic.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/kernel/sync/atomic.rs b/rust/kernel/sync/atomic.rs index 016a6bcaf080..0bc6e7b04d67 100644 --- a/rust/kernel/sync/atomic.rs +++ b/rust/kernel/sync/atomic.rs @@ -22,9 +22,10 @@ mod predefine; pub use internal::AtomicImpl; pub use ordering::{Acquire, Full, Relaxed, Release}; +pub(crate) use internal::{AtomicArithmeticOps, AtomicBasicOps, AtomicExchangeOps}; use crate::build_error; -use internal::{AtomicArithmeticOps, AtomicBasicOps, AtomicExchangeOps, AtomicRepr}; +use internal::AtomicRepr; use ordering::OrderingType; /// A memory location which can be safely modified from multiple execution contexts. |
