]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: whinge about bool bitfields
authorJoe Perches <joe@perches.com>
Tue, 10 Apr 2018 23:34:25 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:36 +0000 (10:28 -0700)
commit2bae1bb2b858f5989f5102a247c1bb6d96586c69
treeec282862c3d5a0dd1b42ac9fc68f1844f5dd3e72
parent49a0b0abecff3333bc86e7685b76379e130e71ba
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/e22fb871b1b7f2fda4b22f3a24e0d7f092eb612c.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl