From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 898211A704; Wed, 6 Dec 2023 09:26:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="EoFWHUqK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1701854813; x=1733390813; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=XHy/s7usIh2uxCmLk5HoCb1I1blqNWn/YNuTf1NuEXs=; b=EoFWHUqKUYatpFZmjz7IxgDLiYgDvtcEcscmdzApMxh1bd958Y7L+Ruk KOswZ8jdZzf4K5Ac/O9WDPGujaobk49YOW9Kroh6k0hiMWlQr80haEFSh 9iUug4iGbv44Siaj9eqkiBfC316VCsQbDEsKOhplFH1ENFa06A+cUriBr vVKmHbgv4NtHX84jlmKTkgtsW3IsF5n8+PZKZSfk553Ewknldmm76FB6S ghXR6UlI8Yx0ihEI8e6Sqn67QEkQ6WODyGqeseGQTXPSdxmtG9fXNx3YJ 9674W/RhidEN9BmpSKSF0PUAdLcb2aQqa1GYeFdx+APna89NeVzvTMK+C g==; X-CSE-ConnectionGUID: O1O4e9wQSgiVhtaltz5BaA== X-CSE-MsgGUID: 2MFCeDcoTHqb0Vo2lm1HFg== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,254,1695711600"; d="scan'208";a="13697268" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Dec 2023 02:25:44 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Dec 2023 02:25:33 -0700 Received: from [10.171.248.78] (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 6 Dec 2023 02:25:31 -0700 Message-ID: <62b3cd0f-e71c-4d53-be87-388809b42dcc@microchip.com> Date: Wed, 6 Dec 2023 10:24:51 +0100 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] power: reset: at91: Drop '__init' from at91_wakeup_status() To: Nathan Chancellor , CC: , , , , , , References: <20231120-fix-at91-modpost-warnings-v1-1-813671933863@kernel.org> Content-Language: en-US, fr-FR From: Nicolas Ferre Organization: microchip In-Reply-To: <20231120-fix-at91-modpost-warnings-v1-1-813671933863@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit On 20/11/2023 at 23:35, Nathan Chancellor wrote: > When building with clang, there are two section mismatch warnings: > > WARNING: modpost: vmlinux: section mismatch in reference: at91_poweroff_probe+0x7c (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 '__init' from at91_wakeup_status() to clear up the mismatch. > > Fixes: dde74a5de817 ("power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe()") > Fixes: 099806de68b7 ("power: reset: at91-poweroff: Stop using module_platform_driver_probe()") > Signed-off-by: Nathan Chancellor Acked-by: Nicolas Ferre Thanks, best regards, Nicolas > --- > I suspect this is not visible for GCC due to inlining > at91_wakeup_status() but I did not actually check. > --- > drivers/power/reset/at91-poweroff.c | 2 +- > drivers/power/reset/at91-sama5d2_shdwc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c > index 126e774e210c..93eece027865 100644 > --- a/drivers/power/reset/at91-poweroff.c > +++ b/drivers/power/reset/at91-poweroff.c > @@ -57,7 +57,7 @@ static struct shdwc { > void __iomem *mpddrc_base; > } at91_shdwc; > > -static void __init at91_wakeup_status(struct platform_device *pdev) > +static void at91_wakeup_status(struct platform_device *pdev) > { > const char *reason; > u32 reg = readl(at91_shdwc.shdwc_base + AT91_SHDW_SR); > diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c > index af95c7b39cb3..959ce0dbe91d 100644 > --- a/drivers/power/reset/at91-sama5d2_shdwc.c > +++ b/drivers/power/reset/at91-sama5d2_shdwc.c > @@ -107,7 +107,7 @@ static const unsigned long long sdwc_dbc_period[] = { > 0, 3, 32, 512, 4096, 32768, > }; > > -static void __init at91_wakeup_status(struct platform_device *pdev) > +static void at91_wakeup_status(struct platform_device *pdev) > { > struct shdwc *shdw = platform_get_drvdata(pdev); > const struct reg_config *rcfg = shdw->rcfg; > > --- > base-commit: b55d073e6501dc6077edaa945a6dad8ac5c8bbab > change-id: 20231120-fix-at91-modpost-warnings-beabd2bac722 > > Best regards, > -- > Nathan Chancellor > 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E7540C4167B for ; Wed, 6 Dec 2023 09:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:CC:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UzP8urja2HL/mxEIv68DxB23fGP3hadZ5m8bBLtMuwY=; b=WYM89mpQ6v+NCn 6/1eiEb9Ik98FNcWOPHMAIDl04vb4CYzBDAetwzpfun4GzT1f8e88E+JmBjKw6TrkSOfK6fxr4DKo afarRPgWXW9pTfJiZJ8gSnVA4FuhBwCjqpvg/Beaeo2LMO4kLvbeve9tNi8eutnUw92n0xzqGToCS Di+d+Ge0r75MQCeXBvvEBJvNbkqwprEZ7sDaAonIc4lzGFHxtmxLz4ZWKo5zLGldUjQYT13kz8dQ0 W1dn9gJCCN/JPXoorRopjjf9xe6Flovwvly4gX0aVg5B7VvzyZpE/weS8WWvrAdBwj+AgsaKvZXP1 R9D49bdq8o16rZR6gRNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAoA9-009Y8M-14; Wed, 06 Dec 2023 09:25:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAoA5-009Y7U-2T for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2023 09:25:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1701854746; x=1733390746; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=XHy/s7usIh2uxCmLk5HoCb1I1blqNWn/YNuTf1NuEXs=; b=O9S9MkpYp4QpZJCFPU8z48gNVDLYjnUlxi5hkGls8QWk7cntpKxXq0xn 9hegrY70PzK4Uu5XLjYJ7kyK1Q2mf2/eGOiIt2NyzMkQm0gGGAjcvhRHi XtqaGyTsD095VJLivWiiCfBMMjWMI4VjQ4VCQ7pV7PcRFGvoL4/zd6Hz0 lAOofTc5Xo1sq1cJmiKSLocI+oh7f8ist1lfL/K23llNRAelIMz44CShw bxFey3aZcu4AqI/8lXmfg9PNkHHZEbvliEesLZ8p6fE94xBt2kwuZB6cz CTF1hTZaz7w68EJRVnQ5EPifmv/iEhNqIDdQ/K6XSHrl+ftFhqc61LdTa g==; X-CSE-ConnectionGUID: O1O4e9wQSgiVhtaltz5BaA== X-CSE-MsgGUID: 2MFCeDcoTHqb0Vo2lm1HFg== X-ThreatScanner-Verdict: Negative X-IronPort-AV: E=Sophos;i="6.04,254,1695711600"; d="scan'208";a="13697268" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Dec 2023 02:25:44 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 6 Dec 2023 02:25:33 -0700 Received: from [10.171.248.78] (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 6 Dec 2023 02:25:31 -0700 Message-ID: <62b3cd0f-e71c-4d53-be87-388809b42dcc@microchip.com> Date: Wed, 6 Dec 2023 10:24:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] power: reset: at91: Drop '__init' from at91_wakeup_status() To: Nathan Chancellor , CC: , , , , , , References: <20231120-fix-at91-modpost-warnings-v1-1-813671933863@kernel.org> Content-Language: en-US, fr-FR From: Nicolas Ferre Organization: microchip In-Reply-To: <20231120-fix-at91-modpost-warnings-v1-1-813671933863@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231206_012545_822870_4AD770D9 X-CRM114-Status: GOOD ( 17.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 20/11/2023 at 23:35, Nathan Chancellor wrote: > When building with clang, there are two section mismatch warnings: > > WARNING: modpost: vmlinux: section mismatch in reference: at91_poweroff_probe+0x7c (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 '__init' from at91_wakeup_status() to clear up the mismatch. > > Fixes: dde74a5de817 ("power: reset: at91-sama5d2_shdwc: Stop using module_platform_driver_probe()") > Fixes: 099806de68b7 ("power: reset: at91-poweroff: Stop using module_platform_driver_probe()") > Signed-off-by: Nathan Chancellor Acked-by: Nicolas Ferre Thanks, best regards, Nicolas > --- > I suspect this is not visible for GCC due to inlining > at91_wakeup_status() but I did not actually check. > --- > drivers/power/reset/at91-poweroff.c | 2 +- > drivers/power/reset/at91-sama5d2_shdwc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c > index 126e774e210c..93eece027865 100644 > --- a/drivers/power/reset/at91-poweroff.c > +++ b/drivers/power/reset/at91-poweroff.c > @@ -57,7 +57,7 @@ static struct shdwc { > void __iomem *mpddrc_base; > } at91_shdwc; > > -static void __init at91_wakeup_status(struct platform_device *pdev) > +static void at91_wakeup_status(struct platform_device *pdev) > { > const char *reason; > u32 reg = readl(at91_shdwc.shdwc_base + AT91_SHDW_SR); > diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c > index af95c7b39cb3..959ce0dbe91d 100644 > --- a/drivers/power/reset/at91-sama5d2_shdwc.c > +++ b/drivers/power/reset/at91-sama5d2_shdwc.c > @@ -107,7 +107,7 @@ static const unsigned long long sdwc_dbc_period[] = { > 0, 3, 32, 512, 4096, 32768, > }; > > -static void __init at91_wakeup_status(struct platform_device *pdev) > +static void at91_wakeup_status(struct platform_device *pdev) > { > struct shdwc *shdw = platform_get_drvdata(pdev); > const struct reg_config *rcfg = shdw->rcfg; > > --- > base-commit: b55d073e6501dc6077edaa945a6dad8ac5c8bbab > change-id: 20231120-fix-at91-modpost-warnings-beabd2bac722 > > Best regards, > -- > Nathan Chancellor > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel