[PATCH v2 1/3] DONOTMERGE: rust: prelude: add bit function
Miguel Ojeda
miguel.ojeda.sandonis at gmail.com
Thu Feb 1 10:34:08 PST 2024
On Thu, Feb 1, 2024 at 7:07 PM Christina Quast
<contact at christina-quast.de> wrote:
>
> In order to create masks easily, the define BIT() is used in C code.
> This commit adds the same functionality to the rust kernel.
Note that it is the same kernel :) Typically we would say "to the Rust
side" or similar.
> Do not merge this commit, because rust/kernel/types.rs in Rust-for-Linux
> already contains this functionality and will be merged into next-net
> soon.
I think you mean the archived `rust` branch (it is useful to point
this out -- Rust for Linux is not just that branch).
However, has the `Bit` type (assuming you mean that) been submitted? I
don't recall seeing it, and normally something like that would not go
through `net-next`. If it has been, could you please send the Lore
link?
> But this driver does not compile without this commit, so I am adding it
> to the patchset to get more feedback on the actual driver.
Assuming the patch was not sent, I would suggest replacing this commit
with the dependency you want to use, e.g. the `Bit` type, since it is
a small enough one.
In addition, this series has v2 in the title -- I think you did that
because this patch was already submitted, but this is not really a v2
of that series since this is mainly about the driver (and anyway this
patch in particular is not meant to be merged; plus you didn't change
it from what I can see).
Thanks!
Cheers,
Miguel
More information about the Linux-rockchip
mailing list