summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2021-07-01 03:56:22 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-07-01 20:06:06 +0200
commit690786511b32baba073f729844779172d2ed72b6 (patch)
treef5a491a679cf1069c9ea7a3c951e73299f9651f5 /scripts/coccinelle
parentcheckpatch: scripts/spdxcheck.py now requires python3 (diff)
downloadlinux-690786511b32baba073f729844779172d2ed72b6.tar.xz
linux-690786511b32baba073f729844779172d2ed72b6.zip
checkpatch: improve the indented label test
checkpatch identifies a label only when a terminating colon immediately follows an identifier. Bitfield definitions can appear to be labels so ignore any spaces between the identifier terminating colon and any digit that may be used to define a bitfield length. Miscellanea: o Improve the initial checkpatch comment o Use the more typical '&&' instead of 'and' o Require the initial label character to be a non-digit (Can't use $Ident here because $Ident allows ## concatenation) o Use $sline instead of $line to ignore comments o Use '$sline !~ /.../' instead of '!($line =~ /.../)' Link: https://lkml.kernel.org/r/b54d673e7cde7de5de0c9ba4dd57dd0858580ca4.camel@perches.com Signed-off-by: Joe Perches <joe@perches.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Manikishan Ghantasala <manikishanghantasala@gmail.com> Cc: Alex Elder <elder@ieee.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/coccinelle')
0 files changed, 0 insertions, 0 deletions