Re: [PATCH 0/6] rust: add `bitfield!` and `register!` macros

From: Danilo Krummrich

Date: Tue Jan 20 2026 - 08:38:26 EST


On Tue Jan 20, 2026 at 2:14 PM CET, Miguel Ojeda wrote:
> On Tue, Jan 20, 2026 at 7:23 AM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>>
>> rust: num: add `shr` and `shl` methods to `Bounded`
>> rust: num: add `as_bool` method to `Bounded<_, 1>`
>
> I could apply these two this cycle if that would help, since they are
> straightforward and you say in the cover letter that you also use it
> in Nova code -- does that mean outside the macro? (I don't see it in
> linux-next, but perhaps I am blind...)

I discussed with Alex and Alice that it would be good to land the register!()
macro this cycle (having some local to register.rs bitfield support), so drivers
can start using it next cycle.

Subsequently, we can follow up on the discussions for global bitfield support.

For this purpose, it would be nice if I could pick up those two prerequisites as
part of this.