Skip to contentSkip to conversation

rust: sync: atomic: separate import "blocks"

PATCH New Miguel Ojeda 1 participant 1 message Dec 4, 2025

Subsystems (3)
lore
Share & tools
lore

Miguel Ojeda

author maintainer
#0 lore raw

PATCH 1/1 rust: sync: atomic: separate import "blocks"

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.

---
Perhaps Linus could pick this one directly if ATOMIC Ack's it?

 rust/kernel/sync/atomic.rs | 1 +
 1 file changed, 1 insertion(+)
rust/kernel/sync/atomic.rs +1 -0
index 3afc376be42d..4aebeacb961a 100644
@@ -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