]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: warn on #defines ending in semicolon
authorJoe Perches <joe@perches.com>
Sat, 17 May 2014 13:18:35 +0000 (23:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:18:35 +0000 (23:18 +1000)
commitf23a62ffc384497c48b932099f04c9dfdfd36ee7
tree77c9a594b36b16cfe4580610e3e632c47f08a518
parentfadeaf11691b5903507e04942a7f8e8f7db5390d
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