checkpatch: add checks for question mark and colon spacing
commit1f65f947a6a875e1fe7867dc08e981c4101d435d
authorAndy Whitcroft <apw@shadowen.org>
Thu, 24 Jul 2008 04:29:10 +0000 (23 21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:26 +0000 (24 10:47 -0700)
tree2dec76eed9d3dd6a48bc226fbe3a6d2fa813af9c
parentd2506586586c59f5db0e2ce00d5d31ccec6260b8
checkpatch: add checks for question mark and colon spacing

Add checks for the question mark colon operator spacing, and also check
the other uses of colon.  Colon means a number of things:

 - it introduces the else part of the ?: operator,
 - it terminates a goto label,
 - it terminates the case value,
 - it separates the identifier from the bit size on bit fields, and
 - it is used to introduce option types in asm().

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl