diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-11-06 17:14:49 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-11-06 17:14:49 -0500 |
commit | 9560f840f301868b4b4b175e81afa96dc57611ac (patch) | |
tree | acad7986c22e9dd9bbe10af84df1a8d2fc6d41c9 /arch/arm/mach-socfpga | |
parent | ef21b491bfe0ddf2b61f1804271b0d2cc58e19f2 (diff) |
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>
Diffstat (limited to 'arch/arm/mach-socfpga')
-rw-r--r-- | arch/arm/mach-socfpga/headsmp.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/headsmp.S b/arch/arm/mach-socfpga/headsmp.S index 65762abc4d39..f09b1283ffca 100644 --- a/arch/arm/mach-socfpga/headsmp.S +++ b/arch/arm/mach-socfpga/headsmp.S | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <linux/linkage.h> | 10 | #include <linux/linkage.h> |
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | 12 | ||
13 | __INIT | 13 | __CPUINIT |
14 | .arch armv7-a | 14 | .arch armv7-a |
15 | 15 | ||
16 | #define CPU1_START_ADDR 0xffd08010 | 16 | #define CPU1_START_ADDR 0xffd08010 |