]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve "no space necessary after cast" test
authorJoe Perches <joe@perches.com>
Fri, 13 Feb 2015 22:38:52 +0000 (14:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 14 Feb 2015 05:21:40 +0000 (21:21 -0800)
commitcc955a3d81524a8ced6fb53623076c8c779160a7
tree8b4693efd347c405cc2063d1fe570385f1ee57c8
parent5a388c818ae0c654e7636d2b117719df95f80c5c
checkpatch: improve "no space necessary after cast" test

Code like:
if (a < sizeof(<type>) &&
and
{ .len = sizeof(<type>) },

incorrectly emits that warning, so add more exceptions to avoid
the warning.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl