]> Pileus Git - ~andy/linux/blobdiff - scripts/checkpatch.pl
iwlwifi: fix TX tracer
[~andy/linux] / scripts / checkpatch.pl
index de0f4672cb7408a49d0c931718fff794532aa16e..bd88f11b0953d161b259e80b27d6f423b12e8b1c 100755 (executable)
@@ -2601,6 +2601,11 @@ sub process {
                        CHK("architecture specific defines should be avoided\n" .  $herecurr);
                }
 
+# Check that the storage class is at the beginning of a declaration
+               if ($line =~ /\b$Storage\b/ && $line !~ /^.\s*$Storage\b/) {
+                       WARN("storage class should be at the beginning of the declaration\n" . $herecurr)
+               }
+
 # check the location of the inline attribute, that it is between
 # storage class and type.
                if ($line =~ /\b$Type\s+$Inline\b/ ||