[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181210215856.2238253-1-arnd@arndb.de>
Date: Mon, 10 Dec 2018 22:58:36 +0100
From: Arnd Bergmann <arnd@...db.de>
To: arm@...nel.org, Kevin Hilman <khilman@...nel.org>,
Tony Lindgren <tony@...mide.com>
Cc: Arnd Bergmann <arnd@...db.de>, Dave Gerlach <d-gerlach@...com>,
Keerthy <j-keerthy@...com>, Tero Kristo <t-kristo@...com>,
Santosh Shilimkar <ssantosh@...nel.org>,
linux-omap@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/4] ARM: omap2: avoid section mismatch warning
WARNING: vmlinux.o(.text+0x27530): Section mismatch in reference from the function am43xx_suspend_init() to the function .init.text:am43xx_map_scu()
The function am43xx_suspend_init() references
the function __init am43xx_map_scu().
This is often because am43xx_suspend_init lacks a __init
annotation or the annotation of am43xx_map_scu is wrong.
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
arch/arm/mach-omap2/pm33xx-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-omap2/pm33xx-core.c b/arch/arm/mach-omap2/pm33xx-core.c
index f4971e4a86b2..724cf5774a6c 100644
--- a/arch/arm/mach-omap2/pm33xx-core.c
+++ b/arch/arm/mach-omap2/pm33xx-core.c
@@ -28,7 +28,7 @@ static struct clockdomain *gfx_l4ls_clkdm;
static void __iomem *scu_base;
static struct omap_hwmod *rtc_oh;
-static int __init am43xx_map_scu(void)
+static int am43xx_map_scu(void)
{
scu_base = ioremap(scu_a9_get_base(), SZ_256);
--
2.20.0
Powered by blists - more mailing lists