]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: warn when using gcc's binary constant ("0b") extension
authorJoe Perches <joe@perches.com>
Fri, 7 Jun 2013 00:08:44 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:44 +0000 (15:42 +1000)
commit9f36756ecfa00055b891e2d1228e2a7e301ff137
treee83a7864bc1753fb1116bdee86dbab8e5d47248d
parent160538e463bd4bc08bd9b60c759797b33742455a
checkpatch: warn when using gcc's binary constant ("0b") extension

The gcc extension for binary constants that start with 0b is only
supported with gcc version 4.3 or higher.

The kernel can still be compiled with earlier versions of gcc, so have
checkpatch emit a warning for these constants.

Restructure checkpatch's constant finding code a bit to support finding
these binary constants.

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