* [PATCH] ARM: OMAP1: Fix section mismatch for omap1_init_early()
@ 2012-03-06 18:19 Tony Lindgren
0 siblings, 0 replies; only message in thread
From: Tony Lindgren @ 2012-03-06 18:19 UTC (permalink / raw)
To: linux-arm-kernel
Fix the following warning:
WARNING: vmlinux.o(.text+0x1286c): Section mismatch in reference
from the function omap1_init_early() to the function .init.text:omap1_clk_init()
The function omap1_init_early() references
the function __init omap1_clk_init().
This is often because omap1_init_early lacks a __init
annotation or the annotation of omap1_clk_init is wrong.
Signed-off-by: Tony Lindgren <tony@atomide.com>
--- a/arch/arm/mach-omap1/io.c
+++ b/arch/arm/mach-omap1/io.c
@@ -118,7 +118,7 @@ void __init omap16xx_map_io(void)
/*
* Common low-level hardware init for omap1.
*/
-void omap1_init_early(void)
+void __init omap1_init_early(void)
{
omap_check_revision();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-06 18:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-06 18:19 [PATCH] ARM: OMAP1: Fix section mismatch for omap1_init_early() Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).