mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
checkpatch: labels are not possible types
A label is not a candidate for a possible type. Exclude them. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0776e59460
commit
a6a8406282
1 changed files with 1 additions and 1 deletions
|
@ -1324,7 +1324,7 @@ sub process {
|
|||
possible($type, "A:" . $s);
|
||||
|
||||
# definitions in global scope can only start with types
|
||||
} elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b/s) {
|
||||
} elsif ($s =~ /^.(?:$Storage\s+)?(?:$Inline\s+)?(?:const\s+)?($Ident)\b\s*(?!:)/s) {
|
||||
possible($1, "B:" . $s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue