From patchwork Fri Aug 23 00:05:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 13774379 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 95017C5320E for ; Fri, 23 Aug 2024 00:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=EU8UX4gihEPGybO4jvET3joX356xVH2oQ9kzF9WZD9Y=; b=QftAQHNVrMmvQW+hkIH7edfAGw u/+zIlGDmw4aBSA4vGyzf3pc1JUuL/4jWZetdZBv9fQxHgBbJ1F6wJX1SMOjwic6gWfCDxuM/Njfb 98ryETGOEqR0i65/skIGyFnReU7UyP1vTd5SwS5TPixIlPtMndkybe3gqfUzthg9BK34m9TOJ1Kiv p4wrzlln2NINLIOla3LzL6ITlHxUP7zyOD6mg7zNyhBjdJm34Npw8EMHE5qaqvxgtBhJcRFNlxjgH q1GXyOOs7KwDbZxnkgW9S8/hNBlNhvBbKQtrJq22SNzSvf3CZiwxaiOQIAuszRI+EYWZf29sBaZXs lZUM8R5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shHoi-0000000Ef2v-3nic; Fri, 23 Aug 2024 00:06:12 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shHny-0000000Ees8-1abu for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2024 00:05:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9EBC9A41071; Fri, 23 Aug 2024 00:05:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73A13C32782; Fri, 23 Aug 2024 00:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724371525; bh=vXoCjmpAz9/mZBkhiiu2lMYzNQWeQcsKbtbhcAOPHo8=; h=From:Date:Subject:To:Cc:From; b=U4c9ax7gbfsZ32xF6t+gKLL2KoHjCG/821DDfaIgRjZwMulBwgZA8Y0KKNDMpXF9C geOvQ1B299lvQZhXa9uYBdh+oqK24i9+3wj1XMpIneqYZDbuPraCJ94S5Fp7MzEsxK Xm8uT5vaf2UF8zUIUxDLzJKKRIu01KdS9WbmGmGADXy3UkNsZDd77uLGwOznh9O40G 9XvNoVAOvwb3SeGa6t4/Bxi7xxrF3fEz7mIWcx4tPTT3MVQJgZo8YNnMH3VJXiY5Zy gs9zOJ/YrKtnMUONls47P6OGEVYvPpXuyHXHOKGNfFo5uUa6fa4wfrDcjvuupKTOmU 0aoY4Js4pYdFQ== From: Nathan Chancellor Date: Thu, 22 Aug 2024 17:05:17 -0700 Subject: [PATCH] ARM: imx: Annotate imx7d_enet_init() as __init MIME-Version: 1.0 Message-Id: <20240822-imx7d-mark-imx7d_enet_init-as-init-v1-1-8dfadee3bed4@kernel.org> X-B4-Tracking: v=1; b=H4sIADzSx2YC/yWNSwqAMAwFryJZG+hHsHgVESk2apBWaUUE6d0tu po3mzcPJIpMCbrqgUgXJ95DEVlXMK02LITsioMSqhFGKWR/tw69jds/Rwp0jhz4RJvwo9BOTNq QltJAOToizXx/kX7I+QXqg7YSdAAAAA== To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, llvm@lists.linux.dev, patches@lists.linux.dev, Nathan Chancellor X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1431; i=nathan@kernel.org; h=from:subject:message-id; bh=vXoCjmpAz9/mZBkhiiu2lMYzNQWeQcsKbtbhcAOPHo8=; b=owGbwMvMwCUmm602sfCA1DTG02pJDGnHL7lsVpRbXGxxtEnqkrBgxYdJy9UXLb60imni45N/D xp77t2t1FHKwiDGxSArpshS/Vj1uKHhnLOMN05NgpnDygQyhIGLUwAmIjOB4X+B1aG1uxdNPS9k przRSzzXpI/v/u3ly//JfT93lOmG/vM7DP8DFmbPqIvv9CsJ4D+YtqHb6vm02EX5+qJ/D9b8/Gt uzsANAA== X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_170526_519231_E030CEA0 X-CRM114-Status: GOOD ( 11.60 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org After a recent LLVM change [1] that deduces __cold on functions that only call cold code (such as __init functions), there is a section mismatch warning from imx7d_enet_init(), which got moved to .text.unlikely. as a result of that optimization: WARNING: modpost: vmlinux: section mismatch in reference: imx7d_enet_init+0x20 (section: .text.unlikely.) -> imx7d_enet_clk_sel (section: .init.text) Drop the inline keyword (which does not guarantee inlining) and replace it with __init, as imx7d_enet_init() is only called from __init code, which clears up the warning. Link: https://github.com/llvm/llvm-project/commit/6b11573b8c5e3d36beee099dbe7347c2a007bf53 [1] Signed-off-by: Nathan Chancellor Reviewed-by: Peng Fan --- arch/arm/mach-imx/mach-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- base-commit: 47ac09b91befbb6a235ab620c32af719f8208399 change-id: 20240822-imx7d-mark-imx7d_enet_init-as-init-03d0c38e3118 Best regards, diff --git a/arch/arm/mach-imx/mach-imx7d.c b/arch/arm/mach-imx/mach-imx7d.c index 9587885fb1ac..87632ae0201c 100644 --- a/arch/arm/mach-imx/mach-imx7d.c +++ b/arch/arm/mach-imx/mach-imx7d.c @@ -48,7 +48,7 @@ static void __init imx7d_enet_clk_sel(void) } } -static inline void imx7d_enet_init(void) +static void __init imx7d_enet_init(void) { imx7d_enet_phy_init(); imx7d_enet_clk_sel();