Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp797279rda; Sun, 22 Oct 2023 10:06:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/8XIqs4CYKwcNEk6Ez2webm/vnZsv0+Ntcs6pzIvvHTr+MUxhRDBb+ej6MZU2yW+pM+0v X-Received: by 2002:a92:d2d2:0:b0:357:70f3:c431 with SMTP id w18-20020a92d2d2000000b0035770f3c431mr8220532ilg.9.1697994416289; Sun, 22 Oct 2023 10:06:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697994416; cv=none; d=google.com; s=arc-20160816; b=u0kys6yUjK6JH/H2nYt81wtASBzLZHJ55SKziFWvx79JU/YqIZkKhuIDx2CyO/LaXt NSnWRJtrE5pB7JqSgJd2Q6Ck8KjWD0pN2wXBR/kYuCa/Pz+sS/SuggI6pkBgn832Pelg OMsSphW37X2Xap+pUO+uOdje+2/3R4inX6uG2zG4fLOrOyCQicpPoAWvF1QDNUXxgSME JgtujlslBG1ZcSLVdt43GGsRhrZnDIV3zkJEcqktSYoQ891GFdKC2PnDk+ORz4F1vFVv KrItb3mvWnN8uzFRllkgGC4xPSDKyZ7TvtozJXvSDz5XxkhGqjA0GmL38Ld9S/bdoIBZ 2eRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ps1ocDb33kQx8EP9JqY5yMnymaX7fKAOiQTlgQGkGcQ=; fh=wKrPioF+0wPaktGqmf0aQvlk8PY4Pc32rTAsBSAiP8I=; b=g2Iza0XJjEMxEta9AMp19NuuebYdQiS9G6P9huyoKCOyPL2r6eORGnf9ILjUXdueBj zJJwPx/f86PKwuMikXlO71fMplSJlTbqHnQ5+ZS+WzBpz72k2pAlDcXKXDlQVviEyIlC hSqeDxk1FDjaVgPme8w861OYQauTLYei9lYtoCbVlrcTkj2te6/gzPw6culCpA6uy4oB u00tNLFBr4vLGRIvGpfjzagPODAWr513xY8oHGX7CdkwgxP4WIUHWDflNJ+RHVwdqmHY nMYu+H416CQxzt/g11Xn+AxyjoRE2vjfW2y5G9f7QmrQgAOVjsgAXyNhZSFtuHEARv3I rmYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d/jr2zEZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 195-20020a6302cc000000b0057942bfab4dsi4945402pgc.395.2023.10.22.10.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:06:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="d/jr2zEZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AED0980A7E5C; Sun, 22 Oct 2023 10:06:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232692AbjJVRGm (ORCPT + 99 others); Sun, 22 Oct 2023 13:06:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232578AbjJVRGf (ORCPT ); Sun, 22 Oct 2023 13:06:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 863BCD63; Sun, 22 Oct 2023 10:06:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DBABC433C9; Sun, 22 Oct 2023 17:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697994388; bh=hKI1zzwBL75rgCF5kVM4ODL5hDvv/GmFFgzS1g4lATI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d/jr2zEZFapXEUeHrMZOfqTMdiWYVWdzESaIC4c6z+PBZgj/SIIBYofDuzXwSmfya aAqcO+ftepC6hG5fXKgra8RiS7+ePPvVuzvHqbxqFzv87RZQ/h6LB9O0EuyyGnzqZe NQpRqhASjAMJxQr5E4i2upCwumbwXfhWdoDvHZCRE+7FZMdnYhumprkpXWGXkrdfRO Ln/tQ/w2As4/n5Dfxzn2UG1KcD58lqDHS0kVzcU0PuaEnutMVvucGZYNcimDk8oKzs BPxJlAAYfp3BLS+iKrlG6CatIi3Mkr7M6Np0L9uVz43Xa/KBSopJuicVLAN6V77kL7 72Cr2xs/9Az1g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier Subject: [PATCH 08/10] modpost: use ALL_INIT_SECTIONS for the section check from DATA_SECTIONS Date: Mon, 23 Oct 2023 02:06:11 +0900 Message-Id: <20231022170613.2072838-8-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231022170613.2072838-1-masahiroy@kernel.org> References: <20231022170613.2072838-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 22 Oct 2023 10:06:47 -0700 (PDT) ALL_INIT_SECTIONS is defined as follows: #define ALL_INIT_SECTIONS INIT_SECTIONS, ALL_XXXINIT_SECTIONS Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 8f4bddbbc52b..c726383c1909 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -863,7 +863,7 @@ static const struct sectioncheck sectioncheck[] = { }, { .fromsec = { DATA_SECTIONS, NULL }, - .bad_tosec = { ALL_XXXINIT_SECTIONS, INIT_SECTIONS, NULL }, + .bad_tosec = { ALL_INIT_SECTIONS, NULL }, .mismatch = DATA_TO_ANY_INIT, }, { -- 2.40.1