Re: [PATCH v2 0/3] rust: add `bitfield!` macro

John Hubbard
2026-04-15T23:22:30Z

On 4/9/26 7:58 AM, Alexandre Courbot wrote:
> This is the continuation of the `bitfield!` macro which started
> alongside the `register!` one before being temporarily integrated into
> it [1].
>
> There were still ongoing discussions in [1], notably about improving the
> ergonomics of setting bitfield values. This revision doesn't try to
> address them yet (although the `with_const` setters partially solve the
> issue); it just extracts the `bitfield!` macro and makes it available,
> for the following reasons:
>
> - To get the ball rolling again after several months of hiatus,
> - Because it is already useful as-is, and ergonomics will be improved

Yes, and I'm worried now that we can't write things such as Joel's page
tables without it.

Can we please put this into your drm-rust-next-staging ASAP? I don't
think we have any comments that would really need to hold that up.

thanks,
--
John Hubbard