linux/arch/arm/mach-prima2
Arnd Bergmann b0db321ba1 ARM: prima2: fix __init section for cpu hotplug
The code in arch/arm/mach-prima2/headsmp.S is used for
both boot time initialization and for cpu hotplug,
so it must not be discarded after the initial boot
is complete. This replaces the __INIT annotation
with __CPUINIT, and marks the sirfsoc_cpu_die as
__ref to annotate that it correctly uses the sections.

Without this patch, building prima2_defconfig results in:

WARNING: arch/arm/mach-prima2/built-in.o(.cpuinit.text+0x130): Section mismatch in reference from the function sirfsoc_boot_secondary() to the function .init.text:sirfsoc_secondary_startup()
The function __cpuinit sirfsoc_boot_secondary() references
a function __init sirfsoc_secondary_startup().
If sirfsoc_secondary_startup is only used by sirfsoc_boot_secondary then
annotate sirfsoc_secondary_startup with a matching annotation.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Barry Song <baohua.song@csr.com>
2013-02-14 14:36:35 +01:00
..
include/mach ARM: PRIMA2: provide two DEBUG_LL ports for prima2 and marco 2013-01-22 19:53:36 +08:00
common.c ARM: MARCO: fix the build issue due to gic-vic-to-irqchip move 2013-02-04 21:53:14 -08:00
common.h ARM: PRIMA2: add new SiRFmarco SMP SoC infrastructures 2013-01-22 19:53:27 +08:00
headsmp.S ARM: prima2: fix __init section for cpu hotplug 2013-02-14 14:36:35 +01:00
hotplug.c ARM: prima2: fix __init section for cpu hotplug 2013-02-14 14:36:35 +01:00
irq.c ARM: PRIMA2: irq: make prima2 irq can work even we enable GIC for Marco 2013-01-22 19:39:14 +08:00
Kconfig ARM: PRIMA2: add new SiRFmarco SMP SoC infrastructures 2013-01-22 19:53:27 +08:00
l2x0.c ARM: PRIMA2: initialize l2x0 according to mach from DT 2013-01-22 19:37:15 +08:00
lluart.c ARM: CSR: mapping early DEBUG_LL uart 2011-07-09 07:20:51 +08:00
Makefile ARM: PRIMA2: add new SiRFmarco SMP SoC infrastructures 2013-01-22 19:53:27 +08:00
Makefile.boot ARM: dtb: move all dtb targets to common Makefile 2012-09-20 22:58:17 -07:00
platsmp.c ARM: MARCO: fix the build issue due to gic-vic-to-irqchip move 2013-02-04 21:53:14 -08:00
pm.c ARM: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
pm.h ARM: CSR: PM: add sleep entry for SiRFprimaII 2011-09-21 23:25:59 +08:00
rstc.c ARM: PRIMA2: rstc: enable the support for Marco 2013-01-22 19:38:48 +08:00
rtciobrg.c Merge branch 'marco-timer-cleanup-rebase' of git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel into next/soc 2013-01-27 23:03:42 -08:00
sleep.S ARM: CSR: PM: add sleep entry for SiRFprimaII 2011-09-21 23:25:59 +08:00
timer-marco.c ARM: PRIMA2: add new SiRFmarco SMP SoC infrastructures 2013-01-22 19:53:27 +08:00
timer-prima2.c Merge branch 'marco-timer-cleanup-rebase' of git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel into next/soc 2013-01-27 23:03:42 -08:00