From: Gary Guo <gary@garyguo.net>
To: FUJITA Tomonori <fujita.tomonori@gmail.com>
Cc: boqun.feng@gmail.com, ojeda@kernel.org, a.hindborg@kernel.org,
aliceryhl@google.com, bjorn3_gh@protonmail.com, dakr@kernel.org,
lossin@kernel.org, tmgross@umich.edu, acourbot@nvidia.com,
rust-for-linux@vger.kernel.org, linux-arch@vger.kernel.org
Subject: Re: [PATCH v2 0/2] Add atomic bool support
Date: Fri, 2 Jan 2026 11:20:00 +0000 [thread overview]
Message-ID: <20260102112000.714ac16d.gary@garyguo.net> (raw)
In-Reply-To: <20260101034922.2020334-1-fujita.tomonori@gmail.com>
On Thu, 1 Jan 2026 12:49:20 +0900
FUJITA Tomonori <fujita.tomonori@gmail.com> wrote:
> This adds `bool` support to the Rust LKMM atomics.
>
> Rust specifies that `bool` has size 1 and alignment 1 [1], so it can
> be represented using an `i8` backing type.
>
> [1] https://doc.rust-lang.org/reference/types/boolean.html
>
> v2:
> - remove AtomicImpl
> - remove Safety comment about the bit patterns
> - remove from_ptr() comment in cover letter
> v1: https://lore.kernel.org/rust-for-linux/20251230045028.1773445-1-fujita.tomonori@gmail.com/
>
Reviewed-by: Gary Guo <gary@garyguo.net>
Thanks!
- Gary
>
> FUJITA Tomonori (2):
> rust: sync: atomic: Add atomic bool support via i8 representation
> rust: sync: atomic: Add atomic bool tests
>
> rust/kernel/sync/atomic/internal.rs | 1 +
> rust/kernel/sync/atomic/predefine.rs | 27 +++++++++++++++++++++++++++
> 2 files changed, 28 insertions(+)
>
>
> base-commit: dafb6d4cabd044ccd7e49cea29363e8526edc071
next prev parent reply other threads:[~2026-01-02 11:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-01 3:49 [PATCH v2 0/2] Add atomic bool support FUJITA Tomonori
2026-01-01 3:49 ` [PATCH v2 1/2] rust: sync: atomic: Add atomic bool support via i8 representation FUJITA Tomonori
2026-01-03 7:51 ` Boqun Feng
2026-01-03 9:38 ` FUJITA Tomonori
2026-01-01 3:49 ` [PATCH v2 2/2] rust: sync: atomic: Add atomic bool tests FUJITA Tomonori
2026-01-02 11:20 ` Gary Guo [this message]
2026-01-03 7:52 ` [PATCH v2 0/2] Add atomic bool support Boqun Feng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260102112000.714ac16d.gary@garyguo.net \
--to=gary@garyguo.net \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=dakr@kernel.org \
--cc=fujita.tomonori@gmail.com \
--cc=linux-arch@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox