]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: sync: atomic: Make Atomic*Ops pub(crate)
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 22 Oct 2025 03:53:22 +0000 (23:53 -0400)
committerBoqun Feng <boqun.feng@gmail.com>
Wed, 12 Nov 2025 16:56:38 +0000 (08:56 -0800)
commit14e9a18b07ec463a85094cc8942788336164319f
tree1974732e3fc5d1633a4c08378617826f345f824e
parentb94d45b6bbb42571ec225d3be0e7457c8765a5b4
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
rust/kernel/sync/atomic.rs