diff options
author | Joe Perches <[email protected]> | 2014-12-10 15:51:46 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-10 17:41:11 -0800 |
commit | abb08a53883ed7afbe3f0ac9444805042f473a63 (patch) | |
tree | eed4ba0882422e17763c65ceef9ce66d11bf79bc /tools/perf/scripts/python/syscall-counts.py | |
parent | 36061e380618201a558e01d2c2ac6217ea331523 (diff) |
checkpatch: try to avoid mask and shift errors
Shift has a higher precedence that mask so warn when a mask then shift
operation is done without parentheses around the mask.
This test works well for a right shift, but the left shift is pretty
commonly done correctly so only warn on the right shift.
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions