Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp797419rda; Sun, 22 Oct 2023 10:07:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwyP1Bp8G4LwCh9tKGx9BcH+FGhghleg5WaAeMUx5dRVOjm02T5cF9/4/AI3dYWTWasHQK X-Received: by 2002:a17:903:32c8:b0:1ca:8a38:38c4 with SMTP id i8-20020a17090332c800b001ca8a3838c4mr6702394plr.27.1697994433674; Sun, 22 Oct 2023 10:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697994433; cv=none; d=google.com; s=arc-20160816; b=XxGaK/AneRIjTSlce64Hq0q0Qe5A4yITIvUSkBgzQTZnGzYww/xXcfngkQKCrVLgQl c1X67jV3y/HVC8PNXyD+BqPRWzgVKcFUuHbB4w+VI6kQkBfIZtfZg6QIyhho1931AqgN 446wtS+8kuUaj4f1paDU3kqwjSH/X7XkkBugA6oJHs1krmEKXzOoZJUfS5nXQhV+qw5g 1lreh5jxDw864Vg+F8u3xyKrA+Ef7G876kjkWcIvUsRuU6MdaVGG1JD52RImvOibCSv6 OdmHNNzt2BMyU63l2UJonTk8Ob5n13+nVP5JZNlvGkRNug1jYL6t1vBmamJjVKfSCXSV Kxsg== 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=SgugVxpeNJldg12r69wJwGEaNEQhq+OatvMd7FR6oiQ=; fh=wKrPioF+0wPaktGqmf0aQvlk8PY4Pc32rTAsBSAiP8I=; b=rPE+nGVNEBudI6+D3iYPjeAxFiMKMdJ6zNSx9tg/c2hx3nSZWIpO3dpfHdzAa4b7zf VPc6uQcr2zpbi33Ai/HLMIG81otjEDaY0O6ZQQSwPlhQ23i4DkkcKG8ONuRZ55xu1fpd Ec6Cjc0b/goa7MVkMRQGpOnl5rrKX1w6mV0B2ElnPG8wGoOzAhCvPpsw/CUzuQFHQ9j/ y2i0aUer5hCLAilBm402jAT7322JdDfQupOGWrZ+6tTI+t1/x6IwBdo8KAIcR4HFR8SU Z75v50FmfpqkUU82UqgWtJ1Q9AnfeIcUthJWsCyjauUSDWypITvlxGhxsxergNeGTRHM qFWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tH0rGjJC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u3-20020a17090282c300b001c72c792794si4878832plz.47.2023.10.22.10.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:07:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tH0rGjJC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 509AB8066629; Sun, 22 Oct 2023 10:07:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232731AbjJVRGx (ORCPT + 99 others); Sun, 22 Oct 2023 13:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232488AbjJVRGi (ORCPT ); Sun, 22 Oct 2023 13:06:38 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A3EF10C6; Sun, 22 Oct 2023 10:06:31 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02796C433CB; Sun, 22 Oct 2023 17:06:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697994391; bh=jurkImcIT4LPjZwhzZI7kbU4mAhyNYbhidKTnt+0gBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tH0rGjJC4uaKV5yrD8YmJwuh79Hzuz290OkCqRxKkySACmjziCEns+4wJpIsOdUvI vwU0tvUrp+68CmJwwioLWLvhco++yaxJaZIZMB7vn/ue6jGIykzDIZCNS7s2iqbPuk Df09konjcm4LHj3wJugH4ewZ9dk6FEBC8iltR239qnSeWx9ucIVJZeeaGHa2CmK728 4X8wPgGBChW9Zn9ZYbUSiiNrEzcGgqcr7U/rzs1osuW5jgLQLmPVoCwDtXdVrlhUhV 5/Q79oI5NOKo0+2MW7BKbAQausgbQkpLFh+WeRxT5y5cf0+J2HoInhhDgMIgTJmo3X Pt+M5EqoBao5w== 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 10/10] modpost: squash ALL_{INIT,EXIT}_TEXT_SECTIONS to ALL_TEXT_SECTIONS Date: Mon, 23 Oct 2023 02:06:13 +0900 Message-Id: <20231022170613.2072838-10-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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Sun, 22 Oct 2023 10:07:11 -0700 (PDT) ALL_INIT_TEXT_SECTIONS and ALL_EXIT_TEXT_SECTIONS are only used in the macro definition of ALL_TEXT_SECTIONS. Signed-off-by: Masahiro Yamada --- scripts/mod/modpost.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index e4eb989dc764..f27ea0b8531d 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -795,11 +795,6 @@ static void check_section(const char *modname, struct elf_info *elf, ".init.setup", ".init.rodata", ".meminit.rodata", \ ".init.data", ".meminit.data" -#define ALL_INIT_TEXT_SECTIONS \ - ".init.text", ".meminit.text" -#define ALL_EXIT_TEXT_SECTIONS \ - ".exit.text" - #define ALL_PCI_INIT_SECTIONS \ ".pci_fixup_early", ".pci_fixup_header", ".pci_fixup_final", \ ".pci_fixup_enable", ".pci_fixup_resume", \ @@ -819,7 +814,7 @@ static void check_section(const char *modname, struct elf_info *elf, #define INIT_SECTIONS ".init.*" -#define ALL_TEXT_SECTIONS ALL_INIT_TEXT_SECTIONS, ALL_EXIT_TEXT_SECTIONS, \ +#define ALL_TEXT_SECTIONS ".init.text", ".meminit.text", ".exit.text", \ TEXT_SECTIONS, OTHER_TEXT_SECTIONS enum mismatch { -- 2.40.1