[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176313439183.498.16191411006958532656.tip-bot2@tip-bot2>
Date: Fri, 14 Nov 2025 15:33:11 -0000
From: "tip-bot2 for Boqun Feng" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: David Gow <davidgow@...gle.com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
Boqun Feng <boqun.feng@...il.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: locking/core] rust: sync: atomic: Make Atomic*Ops pub(crate)
The following commit has been merged into the locking/core branch of tip:
Commit-ID: 14e9a18b07ec463a85094cc8942788336164319f
Gitweb: https://git.kernel.org/tip/14e9a18b07ec463a85094cc8942788336164319f
Author: Boqun Feng <boqun.feng@...il.com>
AuthorDate: Tue, 21 Oct 2025 23:53:22 -04:00
Committer: Boqun Feng <boqun.feng@...il.com>
CommitterDate: Wed, 12 Nov 2025 08:56:38 -08: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 <davidgow@...gle.com>
Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Boqun Feng <boqun.feng@...il.com>
Link: https://patch.msgid.link/20251022035324.70785-2-boqun.feng@gmail.com
---
rust/kernel/sync/atomic.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rust/kernel/sync/atomic.rs b/rust/kernel/sync/atomic.rs
index 016a6bc..0bc6e7b 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.
Powered by blists - more mailing lists