Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

export_report: use warn() to issue WARNING, so they go to stderr

Also count CONFIG_MODVERSIONS warnings, and print a NOTE at start of
SECTION 2 if any were issued. Section 2 will be empty if the build is
lacking this CONFIG_ item, and user may have missed the warnings, as
they're off screen.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>

authored by

Jim Cromie and committed by
Michal Marek
ca995cbf bdabc7a3

+7 -1
+7 -1
scripts/export_report.pl
··· 102 102 # 103 103 # collect the usage count of each symbol. 104 104 # 105 + my $modversion_warnings = 0; 106 + 105 107 foreach my $thismod (@allcfiles) { 106 108 my $module; 107 109 ··· 134 132 } 135 133 } 136 134 if ($state != 2) { 137 - print "WARNING:$thismod is not built with CONFIG_MODVERSION enabled\n"; 135 + warn "WARNING:$thismod is not built with CONFIG_MODVERSIONS enabled\n"; 136 + $modversion_warnings++; 138 137 } 139 138 close($module); 140 139 } ··· 168 165 printf("SECTION 2:\n\tThis section reports export-symbol-usage of in-kernel 169 166 modules. Each module lists the modules, and the symbols from that module that 170 167 it uses. Each listed symbol reports the number of modules using it\n"); 168 + 169 + print "\nNOTE: Got $modversion_warnings CONFIG_MODVERSIONS warnings\n\n" 170 + if $modversion_warnings; 171 171 172 172 print "~"x80 , "\n"; 173 173 for my $thismod (sort keys %MODULE) {