summaryrefslogtreecommitdiff
path: root/scripts/basic/fixdep.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2021-07-01 04:56:22 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-07-01 21:06:06 +0300
commit690786511b32baba073f729844779172d2ed72b6 (patch)
treef5a491a679cf1069c9ea7a3c951e73299f9651f5 /scripts/basic/fixdep.c
parentf9363b31d769245cb7ec8a660460800d4b466911 (diff)
downloadlinux-690786511b32baba073f729844779172d2ed72b6.tar.xz
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/basic/fixdep.c')
0 files changed, 0 insertions, 0 deletions