Re: [PATCH v2 1/7] rust_binder: Add dynamic debug logging mask

From: Miguel Ojeda

Date: Fri Jul 10 2026 - 12:40:33 EST


On Fri, Jul 10, 2026 at 4:59 PM Greg Kroah-Hartman
<gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Not an objection, but don't we have the equivalent of the BIT() macro in
> rust? I think that's what this should be using if we do...

Yeah:

https://rust.docs.kernel.org/kernel/bits/

We should probably update the example in the `impl_flags!` macro so
that people use it here too -- the macro already takes an expression
so it works.

Cheers,
Miguel