aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5420db6502fc..cf70f123f574 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2108,6 +2108,10 @@ sub process {
2108 if ($line =~ /\bsimple_(strto.*?)\s*\(/) { 2108 if ($line =~ /\bsimple_(strto.*?)\s*\(/) {
2109 WARN("consider using strict_$1 in preference to simple_$1\n" . $herecurr); 2109 WARN("consider using strict_$1 in preference to simple_$1\n" . $herecurr);
2110 } 2110 }
2111# check for __initcall(), use device_initcall() explicitly please
2112 if ($line =~ /^.\s*__initcall\s*\(/) {
2113 WARN("please use device_initcall() instead of __initcall()\n" . $herecurr);
2114 }
2111 2115
2112# use of NR_CPUS is usually wrong 2116# use of NR_CPUS is usually wrong
2113# ignore definitions of NR_CPUS and usage to define arrays as likely right 2117# ignore definitions of NR_CPUS and usage to define arrays as likely right