Re: [PATCH v6 7/9] rust: sync: atomic: Add Atomic<u{32,64}>

Benno Lossin
2025-07-11T08:54:22Z

On Thu Jul 10, 2025 at 8:00 AM CEST, Boqun Feng wrote:
> Add generic atomic support for basic unsigned types that have an
> `AtomicImpl` with the same size and alignment.
>
> Unit tests are added including Atomic<i32> and Atomic<i64>.
>
> Reviewed-by: Alice Ryhl <aliceryhl@google.com>
> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>

Reviewed-by: Benno Lossin <lossin@kernel.org>

---
Cheers,
Benno

> ---
> rust/kernel/sync/atomic.rs | 99 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 99 insertions(+)