]> 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>
Thu, 23 May 2013 00:37:29 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:11 +0000 (16:09 +1000)
commitaad2d6ab4d11bf127c441061969cc3bbe6d2f65a
treedce052853a58e8d6599620e4be72938674a17025
parentb796b1bbd1b97d6c0d253f44795f567e95e0c1a4
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