diff options
author | Joe Perches <[email protected]> | 2018-04-10 16:33:53 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2018-04-11 10:28:36 -0700 |
commit | bc22d9a7d3aa76bc090d844e6aad18db9cc69237 (patch) | |
tree | 67bc89fa1631c1c0ddc2986a465850af2536a82e /tools/perf/scripts/python/sched-migration.py | |
parent | 8d2e11b22d79053e832d17084bc912102c6cbb62 (diff) |
checkpatch: test SYMBOLIC_PERMS multiple times per line
There are occasions where symbolic perms are used in a ternary like
return (channel == 0) ? S_IRUGO | S_IWUSR : S_IRUGO;
The current test will find the first use "S_IRUGO | S_IWUSR" but not the
second use "S_IRUGO" on the same line.
Improve the test to look for all instances on a line.
Link: http://lkml.kernel.org/r/[email protected]
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/sched-migration.py')
0 files changed, 0 insertions, 0 deletions