Files
twx-linux/include/linux
Peter Zijlstra d1dc861cd6 bitfield.h: Fix "type of reg too small for mask" test
[ Upstream commit bff8c3848e ]

The test: 'mask > (typeof(_reg))~0ull' only works correctly when both
sides are unsigned, consider:

 - 0xff000000 vs (int)~0ull
 - 0x000000ff vs (int)~0ull

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20211110101324.950210584@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-29 17:19:25 +02:00
..
2022-07-07 17:52:17 +02:00
2021-11-26 10:39:22 +01:00
2022-04-13 21:00:56 +02:00
2022-07-25 11:26:34 +02:00
2021-12-14 11:32:39 +01:00