[PATCH v8 5/6] test_bits: add tests for GENMASK_U*()
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Tue Mar 25 09:26:04 PDT 2025
On Wed, Mar 26, 2025 at 01:00:00AM +0900, Vincent Mailhol via B4 Relay wrote:
> From: Lucas De Marchi <lucas.demarchi at intel.com>
>
> Add some additional tests in lib/tests/test_bits.c to cover the
> expected/non-expected values of the fixed-type GENMASK_U*() macros.
>
> Also check that the result value matches the expected type. Since
> those are known at build time, use static_assert() instead of normal
> kunit tests.
New tests always have a green light to go from my point of view,
Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
--
With Best Regards,
Andy Shevchenko
More information about the linux-arm-kernel
mailing list