]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve "no space is necessary after a cast" test
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:05 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:56 +0000 (09:03 -0400)
commitddf8cab2b7c52fde4a27b516527e273a98f4d65b
tree155ea8740728586cc4f8eb933158861a0953f41c
parent79f584ed7fe76e8cf48c1ac6f8455b3ca7de61ad
checkpatch: improve "no space is necessary after a cast" test

The "no space is necessary after a cast" sizeof exclusion doesn't work
properly.

The test reports a false positive for code like:

BUILD_BUG_ON(sizeof(struct batadv_bla_claim_dst) != 6);

Make it work, simplify the exclusions, and add some comments.

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