Re: [PATCH v4] rust: kernel: add support for bits/genmask macros
From: Daniel Almeida
Date: Thu Mar 20 2025 - 09:51:18 EST
Hi Alex,
> Would it make sense to also have u16 and u8 variants? I guess one can
> always use genmask_u32 and then cast to the desired type though.
There’s no u16 and u8 variants because I did not think there would be users.
I can add them otherwise, IMHO we should refrain from using casts when possible.
— Daniel