EXPORT_UNUSED_SYMBOL* is not actually used anywhere. Remove the unused functionality as we generally just remove unused code anyway.
Showing the changes to scripts/checkpatch.pl (1 of 24 files). Show all
Unified · Split
| @@ -4290,8 +4290,7 @@ sub process { · 4289 unmodified lines | |||
| 4290 | if (defined $realline_next && | 4290 | if (defined $realline_next && |
| 4291 | exists $lines[$realline_next - 1] && | 4291 | exists $lines[$realline_next - 1] && |
| 4292 | !defined $suppress_export{$realline_next} && | 4292 | !defined $suppress_export{$realline_next} && |
| 4293 | ($lines[$realline_next - 1] =~ /EXPORT_SYMBOL.*\((.*)\)/ || | 4293 | ($lines[$realline_next - 1] =~ /EXPORT_SYMBOL.*\((.*)\)/)) { |
| 4294 | $lines[$realline_next - 1] =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) { | ||
| 4295 | # Handle definitions which produce identifiers with | 4294 | # Handle definitions which produce identifiers with |
| 4296 | # a prefix: | 4295 | # a prefix: |
| 4297 | # XXX(foo); | 4296 | # XXX(foo); |
| @@ -4318,8 +4317,7 @@ sub process { · 20 unmodified lines | |||
| 4318 | } | 4317 | } |
| 4319 | if (!defined $suppress_export{$linenr} && | 4318 | if (!defined $suppress_export{$linenr} && |
| 4320 | $prevline =~ /^.\s*$/ && | 4319 | $prevline =~ /^.\s*$/ && |
| 4321 | ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ || | 4320 | ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) { |
| 4322 | $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) { | ||
| 4323 | #print "FOO B <$lines[$linenr - 1]>\n"; | 4321 | #print "FOO B <$lines[$linenr - 1]>\n"; |
| 4324 | $suppress_export{$linenr} = 2; | 4322 | $suppress_export{$linenr} = 2; |
| 4325 | } | 4323 | } |