]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: catch all occurences of type and cast spacing errors per line
authorAndy Whitcroft <apw@canonical.com>
Tue, 10 Jan 2012 23:10:15 +0000 (15:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:51 +0000 (16:30 -0800)
commitb5829f110d45a88ba8a7f65a17cff8bf79256847
treedfa486a04620bd02e58b3cdcb8b06ee5da3014ac
parent7a42b43901259b842efa50eee1bba8ee13317fc6
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.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl