[PATCH 1/3] scripts/export_report.pl: fix the path suffix of module

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


From: Xie XiuQi <xiexiuqi@xxxxxxxxxx>

Since commit f65a486821cf ("kbuild: change module.order to list *.o instead of *.ko"),
modules.order stores .o instead of .ko. Therefore, fix it in export_report.pl.
Otherwise, the corresponding .mod.c file cannot be found.

Fixes: f65a486821cf ("kbuild: change module.order to list *.o instead of *.ko")
Signed-off-by: Xie XiuQi <xiexiuqi@xxxxxxxxxx>
---
scripts/export_report.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/export_report.pl b/scripts/export_report.pl
index feb3d5542a62..fa3e47ac7c3b 100755
--- a/scripts/export_report.pl
+++ b/scripts/export_report.pl
@@ -54,7 +54,7 @@ sub collectcfiles {
my @file;
open my $fh, '< modules.order' or die "cannot open modules.order: $!\n";
while (<$fh>) {
- s/\.ko$/.mod.c/;
+ s/\.o$/.mod.c/;
push (@file, $_)
}
close($fh);
--
2.25.1