[PATCH v5 0/7] bits: Fixed-type GENMASK()/BIT()
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Thu Mar 6 13:12:33 UTC 2025
On Thu, Mar 06, 2025 at 08:29:51PM +0900, Vincent Mailhol via B4 Relay wrote:
> Introduce some fixed width variant of the GENMASK() and the BIT()
> macros in bits.h. Note that the main goal is not to get the correct
> type, but rather to enforce more checks at compile time. For example:
>
> GENMASK_U16(16, 0)
>
> will raise a build bug.
This version LGTM, just a couple of comments that you may find
in the individual replies.
--
With Best Regards,
Andy Shevchenko
More information about the dri-devel
mailing list