]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: warn when using gcc's binary constant ("0b") extension
authorJoe Perches <joe@perches.com>
Wed, 3 Jul 2013 22:05:20 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:44 +0000 (16:07 -0700)
commita325ae32602eb48ceed6e05d770bff13daa62c60
tree25eb9f42cf21e5476bbdcd4375fa71a546e0b503
parente1d47a93798bffbf6c24984c10c3b179c10c30f6
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl