aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorJoe Perches <[email protected]>2021-02-25 17:21:40 -0800
committerLinus Torvalds <[email protected]>2021-02-26 09:41:04 -0800
commitb5e8736a954aecd33adf276a2680dc24a36a2420 (patch)
tree355298db478d268e8b2be244c0098eee26b33dd8 /scripts/gdb/linux/lists.py
parent4945cca232ce8bc699b8743f2436af664c471b96 (diff)
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/[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 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions