]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: find hex constants as a single IDENT
authorJoe Perches <joe@perches.com>
Tue, 18 Dec 2012 00:02:02 +0000 (16:02 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:19 +0000 (17:15 -0800)
commit6197d463096bf970753caa1314eb1ffbaca09c41
tree19628f1233f2e758cbd138d1c7a2d41701244b32
parent8f4a3636eb3e3beb1f1c74b54163205def2a937e
checkpatch: find hex constants as a single IDENT

Hexadecimal values are current found in 2 parts.  A hex constant like
0x123456abcdef is found as 0 and then x123456abcdef and later coalesced.

Instead, reverse the order of the 2 searches in $Constant to find 0x
first, then 0 so that the entire hex constant is found all at once.

Signed-off-by: Joe Perches <joe@perches.com>
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