]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: improve "no space after cast" test
authorJoe Perches <joe@perches.com>
Wed, 19 Jun 2013 00:07:21 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:07 +0000 (17:27 +1000)
commit89fdd6ffcbde42acb63f10e10b9a222db699ef2d
treef7f0f1a8eff80f3d9f8d2a2bdc028caf772a9e7e
parent33e342dcb1cea65c43a7d2b6ed2bb7bc5e9b694e
checkpatch: improve "no space after cast" test

Some false positives exist on this test.

For instance:
*va_arg(args, signed char *) = val.s;
or
memset(foo, 0, sizeof(struct bar *) * baz));

Ignore lines that have an arithmetic operator or assignment
after what appears to be a cast to a pointer "(foo *)".

Add $Arithmetic convenience variable.

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