]> git.baikalelectronics.ru Git - kernel.git/commit
arc: remove '__init' for setup_processor() and arc_init_IRQ()
authorChen Gang <gang.chen@asianux.com>
Wed, 23 Oct 2013 02:12:05 +0000 (10:12 +0800)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 6 Nov 2013 05:11:42 +0000 (10:41 +0530)
commit3f292b6ae516618ee43b482b87c49b361a9f9706
tree308059fdb1098ba6aed9c5605b04018da0d6eb4a
parentfaa17263efc6f87f5acbc33e8db50d94ea2633a5
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>
arch/arc/include/asm/irq.h
arch/arc/include/asm/setup.h