diff options
author | Joe Perches <[email protected]> | 2012-01-10 15:09:58 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-01-10 16:30:50 -0800 |
commit | d7c76ba7e58bc3ca674f20759c686535db484749 (patch) | |
tree | 26066daabbfd375eb984da2d8d773ef230f62ddb /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
parent | 554e165cf32610ec9596a183fa1b54a5707fc3cb (diff) |
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.
[[email protected]: fix per Andy]
Signed-off-by: Joe Perches <[email protected]>
Acked-by: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions