Re: [PATCH v5 08/10] rust: sync: atomic: Add Atomic<{usize,isize}>

Andreas Hindborg
2025-06-26T12:49:49Z

"Boqun Feng" <boqun.feng@gmail.com> writes:

> Add generic atomic support for `usize` and `isize`. Note that instead of
> mapping directly to `atomic_long_t`, the represention type
> (`AllowAtomic::Repr`) is selected based on CONFIG_64BIT. This reduces
> the necessarity of creating `atomic_long_*` helpers, which could save
> the binary size of kernel if inline helpers are not available.
>
> Signed-off-by: Boqun Feng <boqun.feng@gmail.com>

Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>

Best regards,
Andreas Hindborg