Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1542979rda; Mon, 23 Oct 2023 16:28:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGXuWPQrNN9bqDAUDVNldQF6qypBGJ/SHt0aVRzCxKrudzCqZwaVJZCCd4hh/Tntbs5PEIf X-Received: by 2002:a17:903:24e:b0:1c5:f110:efa0 with SMTP id j14-20020a170903024e00b001c5f110efa0mr9378554plh.30.1698103712198; Mon, 23 Oct 2023 16:28:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698103712; cv=none; d=google.com; s=arc-20160816; b=LbvZA4WP40jxn0EAhfmg7oDRM8Pp3sf2Hc8xWx8IBXkNzEp1hiIjNE6ezV3XotWK6E 2D0YBFRjkvBVX/cqDbYi7OOfHur63sDf4YTUDChDMEeURaOWCiLq3hSVXHceCHrvSO/S RzY7KhmO3Fm8aHQxWMf0SzOTj7knZ8Vt9swEnU5ad9nFWEvGqvAer6LOlEqVUcucIoZH 6cu04KbI9NpeFSxDeh/31xk/JjZzYCqp+eFijETgyiOZhYRH9yBlZ9+JA2MMCX31IFz2 mIlgyRGt3jBdSwHcFS5nBH7FdbDo0Cwp1uk816A0OlfXcUfoeniC7vk8Vn4v7lKq3hXf DpOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jyw5hZDLxmhFXKk3fa06voRiTATFHqft1c+vdDWvYMs=; fh=t8xSZLhUjR/t/PYJwDfXI/uF/JfI4Vfhl2NLI1fZqO4=; b=YaeFKaiUigJp9TMtwnGIP2D4bvGqaAACHxFO4g9OHqENwuyGvZwN/3F8dlfuxYI0I4 0O5ubGe2npY1SDS0YeomO8MTwxEqtALw0JyJneYU+vPbUTFiS1NAaEmI3nHvlgdGwqIH WflnvgbZLVCGfMMRF1iwAgMGIDji2rszlYEDRQ1FHpK9Btnl44fIKr48C6ZY4aervuIL Wds7JI/R1JHsZQ1eq9qhqC+U8BD74rXU3d4rr5G07EIE2yJncSfNMoPAK5wV60LAC6Tw PWMFGIrvP+T/N6vrsYSbnUOHyzL2nRPKn/VdjFzreOg5kNxyoEMNHmLSB6f7lEz899jv ajYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQsh875n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id y6-20020a170902864600b001c3da86939csi6988097plt.546.2023.10.23.16.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 16:28:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GQsh875n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id C14948068FF0; Mon, 23 Oct 2023 16:28:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbjJWX2U (ORCPT + 99 others); Mon, 23 Oct 2023 19:28:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjJWX2S (ORCPT ); Mon, 23 Oct 2023 19:28:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6085EDE; Mon, 23 Oct 2023 16:28:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5F8AC433C7; Mon, 23 Oct 2023 23:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698103697; bh=6P4ReWHS+myUk2YY4Rx+y5auSUtYo8uMw77/ieje5bU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GQsh875nTbQaGdexfP8f74K5+5NSqOXtFMfRypG7GfzyOYu3bn8+DJr7lRfVKjhYn VecaNSFENoWHQVEuXz7TMRBPUZBHtkY6HHI+8JHen60tfuU7/XMDMNihzrANDlk1pV hUztLgpSLwWoMI4RP2cZv1iD/sfemiEgIUl35K8dDj05tR5wtmVRjoChkkTnWs41LF 2ZOfiSNZg6Z3sMNJw0mOp+STEWvKmm34fRoOLu5M73UYhy8YbPjjifiLSY0NpLc7Yz R9rZaX7mYZNAX69lwdWTZ+3RGCPbjdePSJJ1QPyJ6lciAXkaHcY2JI8tU3kk6DWfVu ETU/bK9Ded25g== Date: Mon, 23 Oct 2023 16:28:14 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Nicolas Schier Subject: Re: [PATCH 04/10] modpost: remove more symbol patterns from the section check whitelist Message-ID: <20231023232814.GA3514685@dev-arch.thelio-3990X> References: <20231022170613.2072838-1-masahiroy@kernel.org> <20231022170613.2072838-4-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231022170613.2072838-4-masahiroy@kernel.org> 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 23 Oct 2023 16:28:29 -0700 (PDT) On Mon, Oct 23, 2023 at 02:06:07AM +0900, Masahiro Yamada wrote: > These symbol patterns were whitelisted to allow them to reference to > functions with the old __devinit and __devexit annotations. > > We stopped doing this a long time ago, for example, commit 6f039790510f > ("Drivers: scsi: remove __dev* attributes.") remove those annotations > from the scsi drivers. > > Keep *_ops and *_console, otherwise they will really cause section > mismatch warnings. > > Signed-off-by: Masahiro Yamada > --- > > scripts/mod/modpost.c | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c > index 792ba9da0f27..19b138664f75 100644 > --- a/scripts/mod/modpost.c > +++ b/scripts/mod/modpost.c > @@ -997,13 +997,7 @@ static int secref_whitelist(const char *fromsec, const char *fromsym, > /* symbols in data sections that may refer to any init/exit sections */ > if (match(fromsec, PATTERNS(DATA_SECTIONS)) && > match(tosec, PATTERNS(ALL_INIT_SECTIONS, ALL_EXIT_SECTIONS)) && > - match(fromsym, PATTERNS("*_template", // scsi uses *_template a lot > - "*_timer", // arm uses ops structures named _timer a lot > - "*_sht", // scsi also used *_sht to some extent > - "*_ops", > - "*_probe", It seems like this one might still be needed. I see this when building certain arm64 configurations with clang. WARNING: modpost: vmlinux: section mismatch in reference: qcom_irq_combiner_probe+0x0 (section: .data) -> combiner_probe (section: .init.text) > - "*_probe_one", > - "*_console"))) > + match(fromsym, PATTERNS("*_ops", "*_console"))) > return 0; > > /* > -- > 2.40.1 >