Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105382
b: refs/heads/master
c: f3db663
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Linus Torvalds committed Jul 24, 2008
1 parent 4babb74 commit 243149e
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c8cb2ca37ed51aa1f3b20e3eff1e72df1c400f70
refs/heads/master: f3db6639fee577f6ed92c0a1fc881e748c47ec48
4 changes: 4 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,10 @@ sub process {
if ($line =~ /\bsimple_(strto.*?)\s*\(/) {
WARN("consider using strict_$1 in preference to simple_$1\n" . $herecurr);
}
# check for __initcall(), use device_initcall() explicitly please
if ($line =~ /^.\s*__initcall\s*\(/) {
WARN("please use device_initcall() instead of __initcall()\n" . $herecurr);
}

# use of NR_CPUS is usually wrong
# ignore definitions of NR_CPUS and usage to define arrays as likely right
Expand Down

0 comments on commit 243149e

Please sign in to comment.