Commit 8f5d221b authored by Chen Gang's avatar Chen Gang Committed by Vineet Gupta

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: default avatarChen Gang <gang.chen@asianux.com>
parent ef3a661a
...@@ -30,7 +30,7 @@ extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); ...@@ -30,7 +30,7 @@ extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
* APIs provided by arch SMP code to rest of arch code * APIs provided by arch SMP code to rest of arch code
*/ */
extern void __init smp_init_cpus(void); extern void __init smp_init_cpus(void);
extern void __init first_lines_of_secondary(void); extern void first_lines_of_secondary(void);
extern const char *arc_platform_smp_cpuinfo(void); extern const char *arc_platform_smp_cpuinfo(void);
/* /*
......
...@@ -95,7 +95,7 @@ stext: ...@@ -95,7 +95,7 @@ stext:
;---------------------------------------------------------------- ;----------------------------------------------------------------
; First lines of code run by secondary before jumping to 'C' ; First lines of code run by secondary before jumping to 'C'
;---------------------------------------------------------------- ;----------------------------------------------------------------
.section .init.text, "ax",@progbits .section .text, "ax",@progbits
.type first_lines_of_secondary, @function .type first_lines_of_secondary, @function
.globl first_lines_of_secondary .globl first_lines_of_secondary
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment