checkpatch: add [] to type extensions
Add [] to a type extensions. Fixes false positives on: .attrs = (struct attribute *[]) { Signed-off-by: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.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
fd1b57ac73
commit
b337d8b82f
|
@ -323,7 +323,7 @@ sub build_types {
|
||||||
}x;
|
}x;
|
||||||
$Type = qr{
|
$Type = qr{
|
||||||
$NonptrType
|
$NonptrType
|
||||||
(?:[\s\*]+\s*const|[\s\*]+|(?:\s*\[\s*\])+)?
|
(?:(?:\s|\*|\[\])+\s*const|(?:\s|\*|\[\])+|(?:\s*\[\s*\])+)?
|
||||||
(?:\s+$Inline|\s+$Modifier)*
|
(?:\s+$Inline|\s+$Modifier)*
|
||||||
}x;
|
}x;
|
||||||
$Declare = qr{(?:$Storage\s+)?$Type};
|
$Declare = qr{(?:$Storage\s+)?$Type};
|
||||||
|
|
Loading…
Reference in New Issue