aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-10-22 22:16:38 -0400
committerVineet Gupta <vgupta@synopsys.com>2013-11-06 00:11:43 -0500
commit8f5d221b0641a9a16311a6e5c056a5b583ef0cbb (patch)
treeb304109d5c59367914201dfae537f616f336bd28
parentef3a661af69046df74beb0ddfa27204aad316385 (diff)
arc: remove '__init' for first_lines_of_secondary()
first_lines_of_secondary() is a '__init' function, but it may be called by __cpu_up() by _cpu_up() by cpu_up() which is a normal export symbol function. So recommend to remove '__init'. The related warning (with allmodconfig): MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x315c): Section mismatch in reference from the function __cpu_up() to the function .init.text:first_lines_of_secondary() The function __cpu_up() references the function __init first_lines_of_secondary(). This is often because __cpu_up lacks a __init annotation or the annotation of first_lines_of_secondary is wrong. Signed-off-by: Chen Gang <gang.chen@asianux.com>
-rw-r--r--arch/arc/include/asm/smp.h2
-rw-r--r--arch/arc/kernel/head.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arc/include/asm/smp.h b/arch/arc/include/asm/smp.h
index c4fb211dcd25..eefc29f08cdb 100644
--- a/arch/arc/include/asm/smp.h
+++ b/arch/arc/include/asm/smp.h
@@ -30,7 +30,7 @@ extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
30 * APIs provided by arch SMP code to rest of arch code 30 * APIs provided by arch SMP code to rest of arch code
31 */ 31 */
32extern void __init smp_init_cpus(void); 32extern void __init smp_init_cpus(void);
33extern void __init first_lines_of_secondary(void); 33extern void first_lines_of_secondary(void);
34extern const char *arc_platform_smp_cpuinfo(void); 34extern const char *arc_platform_smp_cpuinfo(void);
35 35
36/* 36/*
diff --git a/arch/arc/kernel/head.S b/arch/arc/kernel/head.S
index 0f944f024513..2c878e964a64 100644
--- a/arch/arc/kernel/head.S
+++ b/arch/arc/kernel/head.S
@@ -95,7 +95,7 @@ stext:
95;---------------------------------------------------------------- 95;----------------------------------------------------------------
96; First lines of code run by secondary before jumping to 'C' 96; First lines of code run by secondary before jumping to 'C'
97;---------------------------------------------------------------- 97;----------------------------------------------------------------
98 .section .init.text, "ax",@progbits 98 .section .text, "ax",@progbits
99 .type first_lines_of_secondary, @function 99 .type first_lines_of_secondary, @function
100 .globl first_lines_of_secondary 100 .globl first_lines_of_secondary
101 101