]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: sync: atomic: Add i8/i16 load and store support
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Thu, 11 Dec 2025 11:38:25 +0000 (20:38 +0900)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 9 Jan 2026 11:01:41 +0000 (19:01 +0800)
commitb33796d554f270e19141c0c1fa0a90705a511d2b
tree44d54997c2cf3a5cc5b9a1eb4957a2093876b1c4
parentcf4c3bc1445152c1949a4b5fef56d07579fadb1e
rust: sync: atomic: Add i8/i16 load and store support

Add atomic operation support for i8 and i16 types using volatile
read/write and smp_load_acquire/smp_store_release helpers.

[boqun: Adjust [1] to avoid introduction of
impl_atomic_only_load_and_store_ops!() in the middle]

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Link: https://lore.kernel.org/all/20251228120546.1602275-1-fujita.tomonori@gmail.com/
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251211113826.1299077-4-fujita.tomonori@gmail.com
rust/kernel/sync/atomic/internal.rs
rust/kernel/sync/atomic/predefine.rs