checkpatch: add checks for do {} while (0) macro misuses
authorJoe Perches <[email protected]>
Mon, 30 Jul 2012 21:41:24 +0000 (14:41 -0700)
committerLinus Torvalds <[email protected]>
Tue, 31 Jul 2012 00:25:17 +0000 (17:25 -0700)
commitb13edf7ff2dd0fef95e981170fa71fa6b60421b0
treecdfbfb5429b089d1e41f9551bf112a8236fae078
parent66c80b6077256898df948ac6acf547b47ddb1fcf
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 <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl