diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0ef4ae1de8ee..010b18ef4ea0 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -4551,10 +4551,10 @@ sub process { | |||
4551 | "$1 is obsolete, use k$3 instead\n" . $herecurr); | 4551 | "$1 is obsolete, use k$3 instead\n" . $herecurr); |
4552 | } | 4552 | } |
4553 | 4553 | ||
4554 | # check for __initcall(), use device_initcall() explicitly please | 4554 | # check for __initcall(), use device_initcall() explicitly or more appropriate function please |
4555 | if ($line =~ /^.\s*__initcall\s*\(/) { | 4555 | if ($line =~ /^.\s*__initcall\s*\(/) { |
4556 | WARN("USE_DEVICE_INITCALL", | 4556 | WARN("USE_DEVICE_INITCALL", |
4557 | "please use device_initcall() instead of __initcall()\n" . $herecurr); | 4557 | "please use device_initcall() or more appropriate function instead of __initcall() (see include/linux/init.h)\n" . $herecurr); |
4558 | } | 4558 | } |
4559 | 4559 | ||
4560 | # check for various ops structs, ensure they are const. | 4560 | # check for various ops structs, ensure they are const. |