Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207340
b: refs/heads/master
c: 09ef872
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Pannuto authored and Linus Torvalds committed Aug 10, 2010
1 parent 2ce3ec6 commit 461fde2
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 1a15a250862fda3fbdf8454cc7131e24de904e7c
refs/heads/master: 09ef87255da0e005dd0ab39ca25714208cf29cb3
7 changes: 7 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2592,6 +2592,13 @@ sub process {
}
}

# warn about unexpectedly long msleep's
if ($line =~ /\bmsleep\s*\((\d+)\);/) {
if ($1 < 20) {
WARN("msleep < 20ms can sleep for up to 20ms; see Documentation/timers/timers-howto.txt\n" . $line);
}
}

# warn about #ifdefs in C files
# if ($line =~ /^.\s*\#\s*if(|n)def/ && ($realfile =~ /\.c$/)) {
# print "#ifdef in C files should be avoided\n";
Expand Down

0 comments on commit 461fde2

Please sign in to comment.