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

From: Miguel Ojeda

Date: Mon Jun 08 2026 - 03:08:17 EST


On Sat, Jun 6, 2026 at 2:43 PM Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
>
> This is the continuation of the `bitfield!` macro which started
> alongside the `register!` one before being temporarily integrated into
> it [1].
>
> This series extracts `bitfield!` from `register!`, adds unit tests for
> the new macro, and replaces the `register!` macro rules with the
> extracted version.
>
> I have removed the `nova-core` patches, because the Blackwell support
> that has been added this cycle (and thus not visible from `rust-next`)
> introduces more uses of the Nova-local `bitfield!` macro that this
> series intended to remove. If these new uses are not updated, then
> `nova-core` won't build, thus to avoid conflicts and/or build breakages
> I think it is preferable to merge them during the next cycle.
>
> This version is based on `rust-next`, with [2] applied.
>
> A tree with this branch and its dependencies is available at [3].
>
> [1] https://lore.kernel.org/all/20260120-register-v1-0-723a1743b557@xxxxxxxxxx/
> [2] https://lore.kernel.org/all/20260417031531.315281-1-ynorov@xxxxxxxxxx/
> [3] https://github.com/Gnurou/linux/tree/b4/bitfield
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

Applied to `rust-next` -- thanks everyone!

[ Added some more intra-doc links. - Miguel ]

[ Prefixed test suite name with `rust_` as mentioned. Markdown-formatted
a few comments with Markdown. - Miguel ]

Cheers,
Miguel