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 | 4290 | if (defined $realline_next && |
| 4291 | 4291 | exists $lines[$realline_next - 1] && |
| 4292 | 4292 | !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.*\((.*)\)/)) { | |
| 4295 | 4294 | # Handle definitions which produce identifiers with |
| 4296 | 4295 | # a prefix: |
| 4297 | 4296 | # XXX(foo); |
| @@ -4318,8 +4317,7 @@ sub process { · 20 unmodified lines | ||
| 4318 | 4317 | } |
| 4319 | 4318 | if (!defined $suppress_export{$linenr} && |
| 4320 | 4319 | $prevline =~ /^.\s*$/ && |
| 4321 | − ($line =~ /EXPORT_SYMBOL.*\((.*)\)/ || | |
| 4322 | − $line =~ /EXPORT_UNUSED_SYMBOL.*\((.*)\)/)) { | |
| 4320 | + ($line =~ /EXPORT_SYMBOL.*\((.*)\)/)) { | |
| 4323 | 4321 | #print "FOO B <$lines[$linenr - 1]>\n"; |
| 4324 | 4322 | $suppress_export{$linenr} = 2; |
| 4325 | 4323 | } |