Re: [PATCH v2] rust: impl_flags: use bit helper in example
From: Alexandre Courbot
Date: Sat Jul 11 2026 - 08:40:13 EST
On Sat Jul 11, 2026 at 5:23 PM JST, Kosumi Chan wrote:
> Use bit_u32() instead of open-coding shifts in the impl_flags! example.
> This demonstrates the checked bit helper and ensures that bit positions
> remain within the underlying u32 type.
>
> Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Link: https://github.com/Rust-for-Linux/linux/issues/1244
> Assisted-by: OpenCode:openai/gpt-5.6-sol
> Signed-off-by: Kosumi Chan <chankocyo@xxxxxxxxx>
Why not. :)
Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>