* [PATCH] rust: sync: atomic: separate import "blocks"
@ 2025-12-04 14:50 Miguel Ojeda
0 siblings, 0 replies; only message in thread
From: Miguel Ojeda @ 2025-12-04 14:50 UTC (permalink / raw)
To: Linus Torvalds, Will Deacon, Peter Zijlstra, Boqun Feng,
Miguel Ojeda
Cc: Mark Rutland, Gary Guo, linux-kernel, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Danilo Krummrich, rust-for-linux, patches
Commit 14e9a18b07ec ("rust: sync: atomic: Make Atomic*Ops pub(crate)")
added a `pub(crate)` import in the same "block" as the `pub` one,
without running `rustfmt`, which would sort them differently.
Instead of running `rustfmt` as-is, add a newline to keep the import
"blocks" with different visibilities separate.
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
---
Perhaps Linus could pick this one directly if ATOMIC Ack's it?
rust/kernel/sync/atomic.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/rust/kernel/sync/atomic.rs b/rust/kernel/sync/atomic.rs
index 3afc376be42d..4aebeacb961a 100644
--- a/rust/kernel/sync/atomic.rs
+++ b/rust/kernel/sync/atomic.rs
@@ -22,6 +22,7 @@
pub use internal::AtomicImpl;
pub use ordering::{Acquire, Full, Relaxed, Release};
+
pub(crate) use internal::{AtomicArithmeticOps, AtomicBasicOps, AtomicExchangeOps};
use crate::build_error;
base-commit: 559e608c46553c107dbba19dae0854af7b219400
--
2.52.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-04 14:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-04 14:50 [PATCH] rust: sync: atomic: separate import "blocks" Miguel Ojeda
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.