diff options
author | Joe Perches <joe@perches.com> | 2021-02-25 17:21:40 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-26 09:41:04 -0800 |
commit | b5e8736a954aecd33adf276a2680dc24a36a2420 (patch) | |
tree | 355298db478d268e8b2be244c0098eee26b33dd8 /kernel/sysctl.c | |
parent | 4945cca232ce8bc699b8743f2436af664c471b96 (diff) | |
download | lwn-b5e8736a954aecd33adf276a2680dc24a36a2420.tar.gz lwn-b5e8736a954aecd33adf276a2680dc24a36a2420.zip |
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 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions