[PATCH 2/3] scripts/export_report.pl: improve warning message

From: Xie XiuQi
Date: Tue Sep 19 2023 - 10:15:46 EST


From: Xie XiuQi <xiexiuqi@xxxxxxxxxx>

In this warning message, it's better to use the module name instead of .mod.c.

Before:
'WARNING:fs/efivarfs/efivarfs.mod.c is not built with CONFIG_MODVERSIONS enabled'

After:
'WARNING:fs/efivarfs/efivarfs.ko is not built with CONFIG_MODVERSIONS enabled'

Signed-off-by: Xie XiuQi <xiexiuqi@xxxxxxxxxx>
---
scripts/export_report.pl | 2 ++
1 file changed, 2 insertions(+)

diff --git a/scripts/export_report.pl b/scripts/export_report.pl
index fa3e47ac7c3b..eda570224a2d 100755
--- a/scripts/export_report.pl
+++ b/scripts/export_report.pl
@@ -112,6 +112,8 @@ foreach my $thismod (@allcfiles) {
next;
}

+ $thismod =~ s/\.mod\.c/.ko/;
+
my $state=0;
while ( <$module> ) {
chomp;
--
2.25.1