Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198314
b: refs/heads/master
c: d4977c7
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Linus Torvalds committed May 25, 2010
1 parent 08e5326 commit 5dd1b44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3354957a4f8b9bb4b43625232acdf0626851c82f
refs/heads/master: d4977c78e9c7dd042f96f4a21d957bc25a561333
5 changes: 5 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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/ ||
Expand Down

0 comments on commit 5dd1b44

Please sign in to comment.