mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
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 <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Boqun Feng <[email protected]> Link: https://patch.msgid.link/[email protected]
This commit is contained in:
1 parent
b94d45b6bb
commit
14e9a18b07
1 file changed
+2
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user