Re: [PATCH v4 1/6] nova-core: bitfield: Move bitfield-specific code from register! into new macro

From: Greg KH

Date: Sun Sep 21 2025 - 07:23:06 EST


On Sun, Sep 21, 2025 at 11:59:05AM +0200, Miguel Ojeda wrote:
> On Sun, Sep 21, 2025 at 11:36 AM Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> >
> > And where does this allow us to define things like BIT(2) for values?
> > (ok, that's kind of not the point of this patch series, but it will come
> > up over time...)
>
> We have the `bits` module since 6.17:
>
> https://rust.docs.kernel.org/kernel/bits/index.html
>
> (Or do you mean something else?)

No, that's exactly what I was thinking of, sorry, I missed that :)

greg k-h