]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: socfpga: mark secondary_trampoline as cpuinit
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Nov 2012 22:14:49 +0000 (23:14 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 6 Nov 2012 22:14:49 +0000 (23:14 +0100)
commitcc60fbce5ae304443f86f49dd698fcd26356792c
treeacad7986c22e9dd9bbe10af84df1a8d2fc6d41c9
parent6960adadd5c9a12373cefc55fa2fd787e816a1aa
ARM: socfpga: mark secondary_trampoline as cpuinit

The socfpga_boot_secondary is correctly marked as __cpuinit but references
secondary_trampoline, which was introduced into the init section, causing
this build warning:

WARNING: vmlinux.o(.cpuinit.text+0xf90): Section mismatch in reference from the function socfpga_boot_secondary() to the variable .init.text:secondary_trampoline
The function __cpuinit socfpga_boot_secondary() references
a variable __init secondary_trampoline.
If secondary_trampoline is only used by socfpga_boot_secondary then
annotate secondary_trampoline with a matching annotation.

The solution is to mark secondary_trampoline as cpuinit as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-socfpga/headsmp.S