diff options
author | Joe Perches <joe@perches.com> | 2012-01-10 15:09:58 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-10 16:30:50 -0800 |
commit | d7c76ba7e58bc3ca674f20759c686535db484749 (patch) | |
tree | 26066daabbfd375eb984da2d8d773ef230f62ddb /scripts/Makefile.modinst | |
parent | 554e165cf32610ec9596a183fa1b54a5707fc3cb (diff) | |
download | talos-op-linux-d7c76ba7e58bc3ca674f20759c686535db484749.tar.gz talos-op-linux-d7c76ba7e58bc3ca674f20759c686535db484749.zip |
checkpatch: improve memset and min/max with cast checking
Improve the checking of arguments to memset and min/max tests.
Move the checking of min/max to statement blocks instead of single line.
Change $Constant to allow any case type 0x initiator and trailing ul
specifier. Add $FuncArg type as any function argument with or without a
cast. Print the whole statement when showing memset or min/max messages.
Improve the memset with 0 as 3rd argument error message.
There are still weaknesses in the $FuncArg and $Constant code as arbitrary
parentheses and negative signs are not generically supported.
[akpm@linux-foundation.org: fix per Andy]
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.modinst')
0 files changed, 0 insertions, 0 deletions