Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp797298rda; Sun, 22 Oct 2023 10:06:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2uheAXmbgcEfgV+Rv2q9H7ok9SWbzHsr7uc1GxiZ2wVA9GiFJ5NKSWnxacv33YUf7i72j X-Received: by 2002:a17:903:41c9:b0:1c3:e5bf:a9fe with SMTP id u9-20020a17090341c900b001c3e5bfa9femr7889906ple.30.1697994418953; Sun, 22 Oct 2023 10:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697994418; cv=none; d=google.com; s=arc-20160816; b=VH3Rq+/LStiwhBKONWh8Qbpy4iPG4Q7p6Ttf/xMdQaBT+is7G9go0vFzIcvdWAAAi7 6OM3twJh2TNNzip6g4vND5Ne1gS0j7cimk95CfThxWJ8dcsgOBzWcPvHWIBsGjFYy6BR sRdvG1YUYM4RNd67unZDHcnzjc4eJuHsIY8+6aXdX1+cgoz/eJu3WZQMDsJPV5VaU1A5 ZleC8p3o2WX4TeidBMHTF+Y057FclJoAaq+H3iOIiLirIA+kidlREk9eTyVVNA9w/aGr rPzchkwQP7yeYwyy07PVtfTea8rnxc/Hpxz68xOl1gE4qy92bqjY/ece8PNkbtEhKhV3 BrPQ== 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=SkmVyFk30R7vVXCv/0nYfl1fmtfPR9vZ24YyInpqf7M=; fh=wKrPioF+0wPaktGqmf0aQvlk8PY4Pc32rTAsBSAiP8I=; b=dYw2vMshHg/eUnTJJaud5GWvZAWgXZ4kUt54N7xRL8OP9VsF1SjLJxj+msmSZQ/ncY DPYZ5hn9hK5R9L1ScK2lSZ8AgZL+DfObgNTYhH4qIe9P/3hUkdKBqsrHWdp93QvohiRV uDeOVTzfp/eJYz7A2fEoAeHmqTUihC5+5ZGdJbTSLh+ZqW3tTcZxyZGiS1vxTG65edbc ckNGrpgVLga1ymKC37mP5jAFiSQVvH8g8czzsTDlXCIIePwyH7cRfX+Ut541IXoMbQtt RTE678B1pqB3S1BHe4wLRV1moBG+UOVvSalj2otNrx+1iEiA7KeJJ7q6OlyngzsXlevv SkGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GWMI3dwT; 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 w6-20020a170902d3c600b001ca33ce21fesi4995711plb.58.2023.10.22.10.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 10:06:58 -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=GWMI3dwT; 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 28092806136E; Sun, 22 Oct 2023 10:06:50 -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 S232541AbjJVRGc (ORCPT + 99 others); Sun, 22 Oct 2023 13:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232459AbjJVRGY (ORCPT ); Sun, 22 Oct 2023 13:06:24 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94C12FB; Sun, 22 Oct 2023 10:06:22 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D821C433CA; Sun, 22 Oct 2023 17:06:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697994382; bh=G00Dlt7/+9AAm/4d72vjWHQ0YOge50oj8FKlMUxA+RA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GWMI3dwTmlLB7pQ/P42Bade2Cuizg1E1JsnKsllyP+YlusoaBdNMxTIf4+KT2hTSY M8AeCjBuBgi0FPTSof1ueeF10hGXsrQNuThfa7J87WV5+rJVuedcGMmdxTdmrFcTs5 +ehh4WVj+Nj+ztahCwj7Xcug3DdBL+kMf28D3UMVx6EMV7CBF77i98ShHR9QWfLB0s 8ydkYvD+Gri8fdtulve0MmUJjWllsyXAF1bchNyDeeNS6j1gZRR9Wp7cQz9S7kYchX wPyQifBOfmnWbCIHa1lrINvzzMKQ4KsCzo3SyiFERH6czkg9Wos6tWCv5WAXCdvrvp e/+X4sX+xQ8Xg== 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 04/10] modpost: remove more symbol patterns from the section check whitelist Date: Mon, 23 Oct 2023 02:06:07 +0900 Message-Id: <20231022170613.2072838-4-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 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]); Sun, 22 Oct 2023 10:06:50 -0700 (PDT) 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", - "*_probe_one", - "*_console"))) + match(fromsym, PATTERNS("*_ops", "*_console"))) return 0; /* -- 2.40.1