checkpatch: whinge about bool bitfields
authorJoe Perches <[email protected]>
Tue, 10 Apr 2018 23:34:25 +0000 (16:34 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Apr 2018 17:28:36 +0000 (10:28 -0700)
commit5d430902615bdea9d9bc205ed06ffc40d86ea66f
treeec282862c3d5a0dd1b42ac9fc68f1844f5dd3e72
parent38dca988bb208e66d6fdb6346f7266f3d2d1a8a4
checkpatch: whinge about bool bitfields

Using bool in a bitfield isn't a good idea as the alignment behavior is
arch implementation defined.

Suggest using unsigned int or u<8|16|32> instead.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Joe Perches <[email protected]>
Suggested-by: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl