]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: catch all occurences of type and cast spacing errors per line
authorAndy Whitcroft <apw@canonical.com>
Fri, 16 Dec 2011 04:50:21 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:43:52 +0000 (18:43 +1100)
commitc0f37e43143f3210054f4fab6ffe0117847cc6a6
tree50fa697491a4ab75c4505bfcf895c2f7a1aedf72
parent6c14fca91ae9ff1a0cce349d5dee707aa04b5e1a
checkpatch: catch all occurences of type and cast spacing errors per line

Fix up type and cast spacing checks such that all occurences on a line are
examined and reported.  For example the line below has a valid cast and a
bad type, but currently we check the cast first which is good and stop:

    u16* bar = (u16 *)baz;

We will also only report one of the errors in this example:

    u16* bar = (u16*)bad;

Move to iterating across all casts and all types, reporting any failure.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl