Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5148521rdb; Tue, 12 Dec 2023 23:26:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoBIZ4sQURJowvIJdRqUnWjrmkfNfTFaagX65Tv3H2pd4xSJpB7SzWW7C0LQpk2bNiQ8s6 X-Received: by 2002:aca:f13:0:b0:3b8:b4bb:205d with SMTP id 19-20020aca0f13000000b003b8b4bb205dmr4424832oip.115.1702452374520; Tue, 12 Dec 2023 23:26:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702452374; cv=none; d=google.com; s=arc-20160816; b=rnF2BTokNo4iKkeKqM/DB4WDXve9+8oOEv8e3Jmz6EPuyE4FSqzB2pnPSAE5g8B0mu GWdgMdL1mtxaHcU2EhizNzcC7DAT2AesP/9oL6TXBdn/EJ3IPw5MjCpf2Q0vmdL1HMSd /PHweEbVSRYYW/iEg8MJPcboHRJPAHojVRWnp7y+2aoXqXEojqDeBRsuaBS7sr9F6Wry cBRZNN5Tjl2zK7AeFxY1uEfdZQUw1Ko4RkN8U4AAMe7eu1jaQBqiTbtbRBO2DMIHF3sm ULYRvwmSu2qFjuVBq6USCr4Sbg2+XDXL5HDXWv2VAlmAh02OiM+TgkvzDoKq/MG2j+Aq zekw== 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; bh=74lgTAX4stG2MnGC7mFC+/3RnS5T5P3wGr8Lzej2lic=; fh=e70sqV1xhPWdx6TrKM4E40cL0LaW4MaXOYeLUIlHjHs=; b=CIbyHFPd5XYFRmftwu0R567X4BilRKuDJxshybjdURNVEnETKoIYR6hMTMry78eItW d07sy0Qx5VJN3BspLksQKdu5xUhQ1HWZxF7arofNnPrpCQkScGdIfF1HekrQucRIFJsZ C746G4aSv93IyS0f3sePNMFQWZCt2+5ig7gCF1+sd7+5TkzuJ6qbyQ+MZ7Z60lc+nDOh Gp83hs/WKLwP7lcAaYkfWFwfNxCp8E+fQNB9rH+5U4+5mG1/bx2yK9rbMWp7JyISfWYp d3sN7MwuwpJ4RkZNxw6yjafqjQOIsQtbhlE1QMJ4cHih9LWWpYW1JQuFZxGIJ+kS1i/n P3jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e1-20020a656881000000b005c627018c38si9124586pgt.307.2023.12.12.23.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 23:26:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9A31C805394B; Tue, 12 Dec 2023 23:26:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233214AbjLMHZ4 (ORCPT + 99 others); Wed, 13 Dec 2023 02:25:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233149AbjLMHZm (ORCPT ); Wed, 13 Dec 2023 02:25:42 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C349AD for ; Tue, 12 Dec 2023 23:25:48 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rDJcR-0005Io-CZ; Wed, 13 Dec 2023 08:25:23 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rDJcP-00FWGt-JT; Wed, 13 Dec 2023 08:25:21 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1rDJcP-0029iG-9n; Wed, 13 Dec 2023 08:25:21 +0100 Date: Wed, 13 Dec 2023 08:25:21 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Nathan Chancellor Cc: Arnd Bergmann , Sebastian Reichel , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Arnd Bergmann , Nick Desaulniers , Bill Wendling , Yangtao Li , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] power: reset: at91: mark at91_wakeup_status non-__init Message-ID: <20231213072521.z7a37uayjide7ui4@pengutronix.de> References: <20231212214658.213510-1-arnd@kernel.org> <20231212215002.GA3300655@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2h7skrbthp4xldgb" Content-Disposition: inline In-Reply-To: <20231212215002.GA3300655@dev-arch.thelio-3990X> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 23:26:11 -0800 (PST) --2h7skrbthp4xldgb Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, [dropped Justin Stitt from Cc, their email address bounced for me in the past] On Tue, Dec 12, 2023 at 02:50:02PM -0700, Nathan Chancellor wrote: > On Tue, Dec 12, 2023 at 10:46:49PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > >=20 > > Two copies of the at91_wakeup_status() function are called by the > > respective probe() callbacks and are marked __init, but the probe > > functions are no longer annotated that way. This works with gcc because > > the functions always get inlined, but clang keeps them separate, which > > can lead to executing freed memory: > >=20 > > WARNING: modpost: vmlinux: section mismatch in reference: at91_poweroff= _probe+0x80 (section: .text) -> at91_wakeup_status (section: .init.text) > > WARNING: modpost: vmlinux: section mismatch in reference: at91_shdwc_pr= obe+0xcc (section: .text) -> at91_wakeup_status (section: .init.text) > >=20 > > Drop the incorrect annotation on these. > >=20 > > Fixes: 099806de68b7 ("power: reset: at91-poweroff: Stop using module_pl= atform_driver_probe()") > > Fixes: dde74a5de817 ("power: reset: at91-sama5d2_shdwc: Stop using modu= le_platform_driver_probe()") > > Signed-off-by: Arnd Bergmann >=20 > Thanks, I sent the same change three weeks ago at this point: >=20 > https://lore.kernel.org/20231120-fix-at91-modpost-warnings-v1-1-813671933= 863@kernel.org/ >=20 > Your commit message is a little better than mine and I don't really care > which one goes in but it would be good if this could get cleared up > soon... >=20 > Reviewed-by: Nathan Chancellor I don't care either. Given the change is identical (Nathan's submission even has "index 126e774e210c..93eece027865 100644" which exactly matches Arnd's patch), I'll forward my Reviewed-by: tag to here: Reviewed-by: Uwe Kleine-K=F6nig Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --2h7skrbthp4xldgb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmV5XGAACgkQj4D7WH0S /k55KQf9GUq3jC0MeHzrwP9lxo1/WQN9lBC9WQgqI9WYVVui8rPK+DRN+z5EFd6y fCzXQdZBDkyQidwM6cKUzL1tB+/Dt8jn7LGcamvCoMWESMAUKXTh09A1OdofXDDp 1UJXHKzhkzGh0t/xf0ANCsKTLSDoQNMPYQSDQzaiiO4F30Q/cjeZjR5OveK9EOVx 2tjq5yYWmq7u+wcNVlyRIY0mRBq3JMEIGfXxTSxDQ9Li+VmtbQzidVco2IzgBNWO QocK20HBU7OKBUHttn8zpUNApVYPbgd2/hGGXkaYakRVVm3vqMTpLJfSqvWhZZHY OCNKhw2KL4eq+hhybp3bPaaM6M+9eg== =XMUr -----END PGP SIGNATURE----- --2h7skrbthp4xldgb--