Re: [PATCH v9] rust: kernel: add support for bits/genmask macros
From: Danilo Krummrich
Date: Wed Jul 16 2025 - 16:07:08 EST
On Wed Jul 16, 2025 at 9:49 PM CEST, Danilo Krummrich wrote:
> On Wed Jul 16, 2025 at 9:44 PM CEST, Daniel Almeida wrote:
>> I guess this is the same problem as u64: drivers will usually have either
>> i32s/u32s and this would require a cast.
>
> I don't understand this argument? We usualy use usize for such things, no?
I already thought in terms of the register!() macro, which deals with target
types for us anyways. Without that, you're right, u32 is better.