History

module: remove EXPORT_UNUSED_SYMBOL*

EXPORT_UNUSED_SYMBOL* is not actually used anywhere. Remove the unused functionality as we generally just remove unused code anyway.

Christoph Hellwig committed 5 years ago

Commit 36794821 parent f1c3d7324 files · +13 −193Browse files

Showing the changes to scripts/checkpatch.pl (1 of 24 files). Show all

Unified · Split

scripts/checkpatch.pl+2−4
@@ -4290,8 +4290,7 @@ sub process { · 4289 unmodified lines
42904290 if (defined $realline_next &&
42914291 exists $lines[$realline_next - 1] &&
42924292 !defined $suppress_export{$realline_next} &&
4293− ($lines[$realline_next - 1] =~ /EXPORT_SYMBOL.*\((.*)\)/ ||
4294− $lines[$realline_next - 1] =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) {
4293+ ($lines[$realline_next - 1] =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
42954294 # Handle definitions which produce identifiers with
42964295 # a prefix:
42974296 # XXX(foo);
@@ -4318,8 +4317,7 @@ sub process { · 20 unmodified lines
43184317 }
43194318 if (!defined $suppress_export{$linenr} &&
43204319 $prevline =~ /^.\s*$/ &&
4321− ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ ||
4322− $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) {
4320+ ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) {
43234321 #print "FOO B <$lines[$linenr - 1]>\n";
43244322 $suppress_export{$linenr} = 2;
43254323 }