Re: [PATCH v8 5/6] test_bits: add tests for GENMASK_U*()

2025-03-25 Thread Andy Shevchenko
On Wed, Mar 26, 2025 at 01:00:00AM +0900, Vincent Mailhol via B4 Relay wrote: > From: Lucas De Marchi > > 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 expecte

[PATCH v8 5/6] test_bits: add tests for GENMASK_U*()

2025-03-25 Thread Vincent Mailhol via B4 Relay
From: Lucas De Marchi 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 t