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

Xie XiuQi posted 3 patches 1 year, 1 month ago
[PATCH 2/3] scripts/export_report.pl: improve warning message
Posted by Xie XiuQi 1 year, 1 month ago
From: Xie XiuQi <xiexiuqi@huawei.com>

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@huawei.com>
---
 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