Messages in this thread Patch in this message | | | From | Xie XiuQi <> | Subject | [PATCH 3/3] scripts/export_report.pl: fix modversion checking | Date | Tue, 19 Sep 2023 22:11:21 +0800 |
| |
From: Xie XiuQi <xiexiuqi@huawei.com>
The definition of the "__versions" section has changed, so use the newest format. Otherwise, the list of export-symbol-usage is empty.
$ make export_report ... SECTION 2: This section reports export-symbol-usage of in-kernel modules. Each module lists the modules, and the symbols from that module that it uses. Each listed symbol reports the number of modules using it
NOTE: Got 9 CONFIG_MODVERSIONS warnings
Fixes: a3d0cb04f7df ("modpost: use __section in the output to *.mod.c"), Fixes: 33def8498fdd ("treewide: Convert macro and uses of __section(foo) to __section("foo")") Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com> --- 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 eda570224a2d..54132a6a78ba 100755 --- a/scripts/export_report.pl +++ b/scripts/export_report.pl @@ -122,7 +122,7 @@ foreach my $thismod (@allcfiles) { next; } if ($state == 1) { - $state = 2 if ($_ =~ /__attribute__\(\(section\("__versions"\)\)\)/); + $state = 2 if ($_ =~ /__used __section\(\"__versions\"\)/); next; } if ($state == 2) { -- 2.25.1
| |