diff options
author | Chen Gang <gang.chen@asianux.com> | 2013-10-23 05:02:51 +0200 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-11-06 06:11:43 +0100 |
commit | 4782f7f9aeba4dfd383c532e96bebf83ce0b9748 (patch) | |
tree | aeae5507acc2959e035e93efba2b8746cdd089c1 /arch/arc/include/asm/irq.h | |
parent | arc: remove '__init' for first_lines_of_secondary() (diff) | |
download | linux-4782f7f9aeba4dfd383c532e96bebf83ce0b9748.tar.xz linux-4782f7f9aeba4dfd383c532e96bebf83ce0b9748.zip |
arc: remove '__init' for get_hw_config_num_irq()
get_hw_config_num_irq() may be called by normal iss_model_init_smp()
which is a function pointer for 'init_smp' which may be called by
first_lines_of_secondary() which also need be normal too.
The related warning (with allmodconfig):
MODPOST vmlinux.o
WARNING: vmlinux.o(.text+0x5814): Section mismatch in reference from the function iss_model_init_smp() to the function .init.text:get_hw_config_num_irq()
The function iss_model_init_smp() references
the function __init get_hw_config_num_irq().
This is often because iss_model_init_smp lacks a __init
annotation or the annotation of get_hw_config_num_irq is wrong.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Diffstat (limited to 'arch/arc/include/asm/irq.h')
-rw-r--r-- | arch/arc/include/asm/irq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index 548207f073da..291a70db68b8 100644 --- a/arch/arc/include/asm/irq.h +++ b/arch/arc/include/asm/irq.h @@ -19,7 +19,7 @@ #include <asm-generic/irq.h> extern void arc_init_IRQ(void); -extern int __init get_hw_config_num_irq(void); +extern int get_hw_config_num_irq(void); void arc_local_timer_setup(unsigned int cpu); |