projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc13931
)
checkpatch: warn on unnecessary __dev<foo> section markings
author
Joe Perches
<
[email protected]
>
Fri, 22 Feb 2013 00:44:14 +0000
(16:44 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 22 Feb 2013 01:22:26 +0000
(17:22 -0800)
Get people to stop adding __devinit and __devexit section markings.
Signed-off-by: Joe Perches <
[email protected]
>
Acked-by: Andy Whitcroft <
[email protected]
>
Cc: Greg KH <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index f9afd075e1096a082dde48cef594d6416d4947c8..3dcfbc9c6db46159293147977c2dbb69a1f885f4 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-1931,6
+1931,12
@@
sub process {
"use the SSYNC() macro in asm/blackfin.h\n" . $herevet);
}
+# check for old HOTPLUG __dev<foo> section markings
+ if ($line =~ /\b(__dev(init|exit)(data|const|))\b/) {
+ WARN("HOTPLUG_SECTION",
+ "Using $1 is unnecessary\n" . $herecurr);
+ }
+
# Check for potential 'bare' types
my ($stat, $cond, $line_nr_next, $remain_next, $off_next,
$realline_next);