mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
checkpatch: a modifier is not an identifier at the end of a type
We must make sure we do not misrecognise a modifier as an Identifier when trying to match types. Prevent us matching this: void * __ref Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
a3340b3578
commit
667026e7b0
1 changed files with 2 additions and 2 deletions
|
@ -1686,8 +1686,8 @@ sub process {
|
||||||
# Modifiers should have spaces.
|
# Modifiers should have spaces.
|
||||||
$to =~ s/(\b$Modifier$)/$1 /;
|
$to =~ s/(\b$Modifier$)/$1 /;
|
||||||
|
|
||||||
#print "from<$from> to<$to>\n";
|
#print "from<$from> to<$to> ident<$ident>\n";
|
||||||
if ($from ne $to) {
|
if ($from ne $to && $ident !~ /^$Modifier$/) {
|
||||||
ERROR("\"foo${from}bar\" should be \"foo${to}bar\"\n" . $herecurr);
|
ERROR("\"foo${from}bar\" should be \"foo${to}bar\"\n" . $herecurr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue