From nobody Fri Oct 25 19:39:31 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E229CD5BC6 for ; Tue, 19 Sep 2023 14:15:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232699AbjISOPy (ORCPT ); Tue, 19 Sep 2023 10:15:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232667AbjISOPn (ORCPT ); Tue, 19 Sep 2023 10:15:43 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A01A5AD for ; Tue, 19 Sep 2023 07:15:36 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4RqkGD0HBsz4f3nJs for ; Tue, 19 Sep 2023 22:15:32 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.103.91]) by APP4 (Coremail) with SMTP id gCh0CgAnvdwErQllkNB7Aw--.46916S7; Tue, 19 Sep 2023 22:15:33 +0800 (CST) From: Xie XiuQi To: masahiroy@kernel.org, mcgrof@kernel.org, joe@perches.com, ojeda@kernel.org, ndesaulniers@gooogle.com, linux-kernel@vger.kernel.org Cc: xiexiuqi@huawei.com Subject: [PATCH 3/3] scripts/export_report.pl: fix modversion checking Date: Tue, 19 Sep 2023 22:11:21 +0800 Message-Id: <20230919141121.711084-4-xiexiuqi@huaweicloud.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230919141121.711084-1-xiexiuqi@huaweicloud.com> References: <20230919141121.711084-1-xiexiuqi@huaweicloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: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Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UQZ2-UUUUU= X-CM-SenderInfo: x0lh5xhxtlqx5xdzvxpfor3voofrz/ X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Xie XiuQi 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 =20 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 --- 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 =3D=3D 1) { - $state =3D 2 if ($_ =3D~ /__attribute__\(\(section\("__versions"\)\)\)/= ); + $state =3D 2 if ($_ =3D~ /__used __section\(\"__versions\"\)/); next; } if ($state =3D=3D 2) { --=20 2.25.1