summaryrefslogtreecommitdiffstats
path: root/tools/arch
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-11-10 11:01:03 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-12-11 09:09:45 +0100
commitbff8c3848e071d387d8b0784dc91fa49cd563774 (patch)
tree15b9247051bbfac2551bcbace278c62106474395 /tools/arch
parente463a09af2f0677b9485a7e8e4e70b396b2ffb6f (diff)
downloadlinux-bff8c3848e071d387d8b0784dc91fa49cd563774.tar.bz2
bitfield.h: Fix "type of reg too small for mask" test
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
Diffstat (limited to 'tools/arch')
0 files changed, 0 insertions, 0 deletions