scripts/checkpatch.pl: device_initcall is not the only __initcall substitute
This patch adds a link to init.h to find appropriate initcall function to replace obsolete __initcall Change-Id: Ifc9e8d3c1d7b02165bee707788f7cdad4b7da2c5 Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Andy Whitcroft <apw@canonical.com> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Git-commit: ae3ccc4678fec2d270a4c54981831c7b8a2da9cd Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
This commit is contained in:
parent
dda57b7a9e
commit
bc61f5d18e
|
@ -4551,10 +4551,10 @@ sub process {
|
|||
"$1 is obsolete, use k$3 instead\n" . $herecurr);
|
||||
}
|
||||
|
||||
# check for __initcall(), use device_initcall() explicitly please
|
||||
# check for __initcall(), use device_initcall() explicitly or more appropriate function please
|
||||
if ($line =~ /^.\s*__initcall\s*\(/) {
|
||||
WARN("USE_DEVICE_INITCALL",
|
||||
"please use device_initcall() instead of __initcall()\n" . $herecurr);
|
||||
"please use device_initcall() or more appropriate function instead of __initcall() (see include/linux/init.h)\n" . $herecurr);
|
||||
}
|
||||
|
||||
# check for various ops structs, ensure they are const.
|
||||
|
|
Loading…
Reference in New Issue