diff options
author | Joe Perches <[email protected]> | 2016-01-20 14:59:18 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-01-20 17:09:18 -0800 |
commit | 62e15a6daab0f6b3e8233e976201bce9faecaaf7 (patch) | |
tree | ae17e3fed46d08b563e64fae02d83a555bce4e18 /tools/perf/scripts/python/sctop.py | |
parent | 938224b5e596c1c30d968ffd927a578ea7c4f45b (diff) |
checkpatch: improve macros with flow control test
The current test excludes any macro with ## concatenation from being
reported with hidden flow control.
Some macros are used with return or goto statements along with ##args or
##__VA_ARGS__. A somewhat common case is a logging macro like
pr_info(fmt, ...) then a return or goto statement.
Check the concatenated variable for args or __VA_ARGS__ and allow those
macros to also be reported when they contain a return or goto.
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/sctop.py')
0 files changed, 0 insertions, 0 deletions