Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126299
b: refs/heads/master
c: 691d77b
h: refs/heads/master
i:
  126297: c385e71
  126295: 6b02f49
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Jan 6, 2009
1 parent 4d49a89 commit 2852a7f
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 94e2959e7a6a4ef0969932c30349ce6f4469a3cf
refs/heads/master: 691d77b6b85c20e4166bafd12bd0131b28f95a16
9 changes: 9 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2466,6 +2466,15 @@ sub process {
last;
}
}

# whine mightly about in_atomic
if ($line =~ /\bin_atomic\s*\(/) {
if ($realfile =~ m@^drivers/@) {
ERROR("do not use in_atomic in drivers\n" . $herecurr);
} else {
WARN("use of in_atomic() is incorrect outside core kernel code\n" . $herecurr);
}
}
}

# If we have no input at all, then there is nothing to report on
Expand Down

0 comments on commit 2852a7f

Please sign in to comment.