]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: warn on #defines ending in semicolon
authorJoe Perches <joe@perches.com>
Thu, 22 May 2014 00:43:42 +0000 (10:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:43:42 +0000 (10:43 +1000)
commitc64422c0fc26d96528d91874da81b25236fc7609
treedaa3e2492cfc80aa77a67bae09561348e538b1bb
parent5208d05ad52fa9a357275f7530fab7520216bf13
checkpatch: warn on #defines ending in semicolon

Using a #define ending in a semicolon is poor style and can lead to
unexpected code paths being executed.

Warn on uses of these #define types:

#define foo[(...)] bar;
#define foo[(...)] \
bar;

Based on a patch from Borislav Petkov.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl