Commit ef3a661af69046df74beb0ddfa27204aad316385
Committed by
Vineet Gupta
1 parent
3d01c1ce41
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
arch/arc/include/asm/irq.h
arch/arc/include/asm/setup.h