]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: catch all occurances of type and cast spacing errors per line
authorAndy Whitcroft <apw@canonical.com>
Thu, 8 Dec 2011 04:42:25 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:51:59 +0000 (16:51 +1100)
commit65253e5065b7b0280acbc4c2d4cd3a9d1598c937
tree6ea4c06b6f87f1693758ed8eddb6049c7f94d4d5
parentc52cc0d275c015bf66110ffb243e3808afa56da0
checkpatch: catch all occurances of type and cast spacing errors per line

Fix up type and cast spacing checks such that all occurances 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