diff options
-rwxr-xr-x | util/lint/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl index 646cb0f328..84574f1f90 100755 --- a/util/lint/checkpatch.pl +++ b/util/lint/checkpatch.pl @@ -5340,7 +5340,8 @@ sub process { } # 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", "storage class should be at the beginning of the declaration\n" . $herecurr) } |