]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: add checks for do {} while (0) macro misuses
authorJoe Perches <joe@perches.com>
Sat, 21 Jul 2012 00:55:01 +0000 (10:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:22 +0000 (13:53 +1000)
commitfc699b093b3d8666b1fc6da764548e89e0d6c638
tree565b4d95917c680e368598c3bf05a0eba599e74f
parent5cff9725ec58a6329551ab4c04f055ad0ad1951c
checkpatch: add checks for do {} while (0) macro misuses

These types of macros should not be used for either a single statement nor
should the macro end with a semi-colon.

Add tests for these conditions.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl