From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76587C4167B for ; Wed, 13 Dec 2023 07:26:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233276AbjLMHZ5 (ORCPT ); Wed, 13 Dec 2023 02:25:57 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --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--