Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5297091rdb; Wed, 13 Dec 2023 05:03:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEBZ9qLPXKZHoUMhWrzv9dtHKh42S2LZsiI3OdCYPLrWSwfbfVwVVJALIdxrFaNa8zpNShm X-Received: by 2002:a05:6a20:4caa:b0:18f:97c:617c with SMTP id fq42-20020a056a204caa00b0018f097c617cmr6494387pzb.121.1702472615101; Wed, 13 Dec 2023 05:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702472615; cv=none; d=google.com; s=arc-20160816; b=x79PkxcOHzALpns5HJ967Dctk3A4cMy/ofjo1Gkn6qdSoHW9vIxKj3S+afNq3HMeZ6 Xvwz1xk9+sbdeVGDmtrNdx4QYZOTRkbtzvBtEsjAWddgR5EEJhgNZTXdl0+zkY2x8SG8 vje+8DbOKnylMEKllR3H5EYqqOH3WNHyrldfZdPlU+sd4Ncb7SCJD42NQFUObQySjjuD Xu9VECqSoc3LXu/6LAh6zVVnYkrH8tJWz699OHK/C21GeuGeSL44ttxM6YrhAJf5B0Ur N5kgW66HqVSsF/41+z8LCktVd7Tjo3CbaOeWtz7sF3b5lep7+r4dPys9C5dpuBD3K6zk KMgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=plVcntUBw8sGBhLVk53UjB+6nWHhG5YGznXDmpLbLnY=; fh=p+taTjpOv/S1CTGUTPSIVcbFeCB0qHTUEmI6JdlrUGw=; b=rL1y+TjoTztEKnwsnNDDBrmrfYO+p9BTBWP5ldKTyU+xrLzb/ULEPESIvlXJAgX3/+ lbL663HrI1+V8gU5Jq+e5HnxAiQImfqvxv8Uz+UJAy/zk9P5QCi1VjesV5FRgV3jwy/J PNZpX40WBA89xs3q5/kspvML/C3ngcJ6NTV7FwPomlcTTKkAvyh+NnQ3BzFjTmzaYnTT jsCZDPnAX8tbnKKsXM/l46wnxwIFLM7NV3BD2hUTthZnAUyjFad4N7rn9NF176fkRzEh 3vcUPMqjreIvS3RlwyhG+9/iz4uot5mTQnhH7LzobnvxTFcWfKJqWhkHzyayajBPNbPF 22Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=kxoqNvMc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bz10-20020a056a02060a00b005c2203bfc01si9941505pgb.170.2023.12.13.05.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 05:03:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=kxoqNvMc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C9E4C80C1130; Wed, 13 Dec 2023 05:03:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379116AbjLMNDU (ORCPT + 99 others); Wed, 13 Dec 2023 08:03:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379083AbjLMNDR (ORCPT ); Wed, 13 Dec 2023 08:03:17 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B7319AD; Wed, 13 Dec 2023 05:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1702472578; x=1734008578; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=haSX0tbr6yXtmrKq5D0/IHoQGGhGGvZ70eGFTY33y5k=; b=kxoqNvMcQtqZOmnYxs3Eo20L9K6pB6avZJ/QcpfL9RA35qioy7vBLcNN fAHJt425iH1zIWjEr3YmcR24Ax1niq0pwBnEyuYMmLi0oiMzZtWpRbf1V N4r/Xq4igjMGD8ggmSMTQ7F/H7dHEJWAOSIV/I3wf8PeG4/jomtOP7d9G AlHnP4hPpYRSHvTg+uQSDIgArgsOA3lPR57wibypdVZvxV0YdePlcGWH/ cMaJ6beKn64gGQgDgeifPQnT5tm9s+3046wk260ncV+RJCnqSO5y8LAyG zdWbC7UO5h8FUDqd+S3T/I2DFuwGDs+IeeTcfmxakaJ1TGNQIoRbBtyk+ g==; X-CSE-ConnectionGUID: 05LR7F6bQ9qnL0D+1qr56w== X-CSE-MsgGUID: 7bg/nqvNSM6QxELaojNYqg== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="243933255" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 13 Dec 2023 06:02:56 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 13 Dec 2023 06:02:16 -0700 Received: from [10.171.248.29] (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 13 Dec 2023 06:02:13 -0700 Message-ID: Date: Wed, 13 Dec 2023 14:01:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] power: reset: at91: mark at91_wakeup_status non-__init Content-Language: en-US, fr-FR To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Nathan Chancellor , Sebastian Reichel CC: Arnd Bergmann , Alexandre Belloni , Claudiu Beznea , Arnd Bergmann , Nick Desaulniers , Bill Wendling , Yangtao Li , , , , References: <20231212214658.213510-1-arnd@kernel.org> <20231212215002.GA3300655@dev-arch.thelio-3990X> <20231213072521.z7a37uayjide7ui4@pengutronix.de> From: Nicolas Ferre Organization: microchip In-Reply-To: <20231213072521.z7a37uayjide7ui4@pengutronix.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 05:03:32 -0800 (PST) On 13/12/2023 at 08:25, Uwe Kleine-König wrote: > 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 >>> >>> 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: >>> >>> 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_probe+0xcc (section: .text) -> at91_wakeup_status (section: .init.text) >>> >>> Drop the incorrect annotation on these. >>> >>> Fixes: 099806de68b7 ("power: reset: at91-poweroff: Stop using module_platform_driver_probe()") >>> Fixes: dde74a5de817 ("power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe()") >>> Signed-off-by: Arnd Bergmann >> Thanks, I sent the same change three weeks ago at this point: >> >> https://lore.kernel.org/20231120-fix-at91-modpost-warnings-v1-1-813671933863@kernel.org/ >> >> 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... >> >> 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önig Likewise: Acked-by: Nicolas Ferre Use whichever is preferred. Regards, Nicolas