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)
commit6ab3a9701e00c2a085bac6a7a9bdcf8fc5eca6c5
tree155ea8740728586cc4f8eb933158861a0953f41c
parentd43698e8abb58a6ac47d16e0f47bb55f452e4fc4
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