checkpatch.pl: ignore '#define asmlinkage'
checkpatch warns that the asmlinkage storage class should be at the beginning of the declaration when we define it to be an empty value. Change-Id: I12292d5b42bf6da9130bb969ebe00fca8efcf049 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/16358 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
1ce2ba6832
commit
57bfbb0508
|
@ -5340,7 +5340,8 @@ sub process {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check that the storage class is at the beginning of a declaration
|
# Check that the storage class is at the beginning of a declaration
|
||||||
if ($line =~ /\b$Storage\b/ && $line !~ /^.\s*$Storage\b/) {
|
# coreboot: skip complaint about our '#define asmlinkage' lines
|
||||||
|
if ($line =~ /\b$Storage\b/ && $line !~ /^.\s*$Storage\b/ && $line !~ /^.\s*#\s*define\s+$Storage\b/) {
|
||||||
WARN("STORAGE_CLASS",
|
WARN("STORAGE_CLASS",
|
||||||
"storage class should be at the beginning of the declaration\n" . $herecurr)
|
"storage class should be at the beginning of the declaration\n" . $herecurr)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue