ARM: OMAP: fix section mismatch warning for omap4_hotplug_cpu()
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Thu, 23 Feb 2012 06:58:29 +0000 (12:28 +0530)
committerTony Lindgren <tony@atomide.com>
Tue, 28 Feb 2012 22:33:16 +0000 (14:33 -0800)
WARNING: arch/arm/mach-omap2/built-in.o(.text+0x8b80):
Section mismatch in reference from the function omap4_hotplug_cpu() to
the function .cpuinit.text:omap_secondary_startup()
The function omap4_hotplug_cpu() references
the function __cpuinit omap_secondary_startup().
This is often because omap4_hotplug_cpu lacks a __cpuinit
annotation or the annotation of omap_secondary_startup is wrong.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-mpuss-lowpower.c

index 1d5d01056558fa0581410a35ba09d4bfeeff8cc0..fe9ab7c58fae71d027f26b57c88a3590da5e51ab 100644 (file)
@@ -300,7 +300,7 @@ int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state)
  * @cpu : CPU ID
  * @power_state: CPU low power state.
  */
-int omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state)
+int __cpuinit omap4_hotplug_cpu(unsigned int cpu, unsigned int power_state)
 {
        unsigned int cpu_state = 0;
 
This page took 0.026754 seconds and 5 git commands to generate.