diff options
author | Joe Perches <joe@perches.com> | 2021-02-26 04:21:40 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-26 20:41:04 +0300 |
commit | b5e8736a954aecd33adf276a2680dc24a36a2420 (patch) | |
tree | 355298db478d268e8b2be244c0098eee26b33dd8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4945cca232ce8bc699b8743f2436af664c471b96 (diff) | |
download | linux-b5e8736a954aecd33adf276a2680dc24a36a2420.tar.xz |
checkpatch: improve blank line after declaration test
Avoid multiple false positives by ignoring attributes.
Various attributes like volatile and ____cacheline_aligned_in_smp cause
checkpatch to emit invalid "Missing a blank line after declarations"
messages.
Use copies of $sline and $prevline, remove $Attribute and $Sparse, and use
the existing tests to avoid these false positives.
Miscellanea:
o Add volatile to $Attribute
This also reduces checkpatch runtime a bit by moving the indentation
comparison test to the start of the block to avoid multiple unnecessary
regex tests.
Link: https://lkml.kernel.org/r/9015fd00742bf4e5b824ad6d7fd7189530958548.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions