]> 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>
Mon, 19 Dec 2011 07:19:42 +0000 (18:19 +1100)
commit6be60fee1b0f7377c94f5716562d00c518087848
treeccda1fcfbddd2d76f2f573a6ada9adaa2cfa59f1
parent540e449e8e54370d5b3011d3c0061ae8614dd598
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