]> git.karo-electronics.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>
Tue, 24 Jul 2012 05:00:55 +0000 (15:00 +1000)
commitb5765cb688f8e238214e24e20470e36cfc8ce4bc
treef71fafd6b0d48154758271499b796bd36bafc73b
parent099482356e5c70284393b9f461bbdc0062711bd2
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