]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: avoid "spaces required around that ':'" false positive
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:53 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:59 +0000 (09:03 -0400)
commit95eface73c25008e5a3da9c8acd379af4bc5308e
treeaf960392072968740794d8e8b9cf1e42cf1c0ff2
parente07dd9b228bf4a6ba0a3e8d34909e7b62fe9323a
checkpatch: avoid "spaces required around that ':'" false positive

Since commit 416015cdd4d9 ("checkpatch: add checks for question mark and
colon spacing") back in 2008, checkpatch has reported false positive for
asm volatile uses of "::" checkpatch thinks colons should always have
spaces around it.

Add an exception for colons with colons on either side for this valid asm
volatile (and c++) use.

Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Yehuda Yitschak <yehuday@marvell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl