summaryrefslogtreecommitdiff
path: root/arch/arc/include/asm/irq.h
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-10-23 06:12:05 +0400
committerVineet Gupta <vgupta@synopsys.com>2013-11-06 09:11:42 +0400
commitef3a661af69046df74beb0ddfa27204aad316385 (patch)
tree308059fdb1098ba6aed9c5605b04018da0d6eb4a /arch/arc/include/asm/irq.h
parent3d01c1ce41fae0fb1d8e50589f9fb3b1fa376c1c (diff)
downloadlinux-ef3a661af69046df74beb0ddfa27204aad316385.tar.xz
arc: remove '__init' for setup_processor() and arc_init_IRQ()
They haven't '__init' in definition, but has '__init' in declaration. And normal function start_kernel_secondary() may call setup_processor() which will call arc_init_IRQ(). So need remove '__init' for both of them. The related warning (with allmodconfig): MODPOST vmlinux.o WARNING: vmlinux.o(.text+0x3084): Section mismatch in reference from the function start_kernel_secondary() to the function .init.text:setup_processor() The function start_kernel_secondary() references the function __init setup_processor(). This is often because start_kernel_secondary lacks a __init annotation or the annotation of setup_processor 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h
index c0a72105ee0b..548207f073da 100644
--- a/arch/arc/include/asm/irq.h
+++ b/arch/arc/include/asm/irq.h
@@ -18,7 +18,7 @@
#include <asm-generic/irq.h>
-extern void __init arc_init_IRQ(void);
+extern void arc_init_IRQ(void);
extern int __init get_hw_config_num_irq(void);
void arc_local_timer_setup(unsigned int cpu);