[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230919141121.711084-4-xiexiuqi@huaweicloud.com>
Date: Tue, 19 Sep 2023 22:11:21 +0800
From: Xie XiuQi <xiexiuqi@...weicloud.com>
To: masahiroy@...nel.org, mcgrof@...nel.org, joe@...ches.com,
ojeda@...nel.org, ndesaulniers@...ogle.com,
linux-kernel@...r.kernel.org
Cc: xiexiuqi@...wei.com
Subject: [PATCH 3/3] scripts/export_report.pl: fix modversion checking
From: Xie XiuQi <xiexiuqi@...wei.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@...wei.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
Powered by blists - more mailing lists