Skip to content

Commit

Permalink
x86/apic: Make init_legacy_irqs() __init
Browse files Browse the repository at this point in the history
This function is only called by arch_early_irq_init(), which is an
__init function, so mark the child function __init as well.

In addition mark it inline for the !CONFIG_X86_IO_APIC case.

Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1498040061-5332-1-git-send-email-douly.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Dou Liyang authored and Ingo Molnar committed Jun 22, 2017
1 parent 9df8109 commit a884d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/apic/vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ int __init arch_probe_nr_irqs(void)
}

#ifdef CONFIG_X86_IO_APIC
static void init_legacy_irqs(void)
static void __init init_legacy_irqs(void)
{
int i, node = cpu_to_node(0);
struct apic_chip_data *data;
Expand All @@ -424,7 +424,7 @@ static void init_legacy_irqs(void)
}
}
#else
static void init_legacy_irqs(void) { }
static inline void init_legacy_irqs(void) { }
#endif

int __init arch_early_irq_init(void)
Expand Down

0 comments on commit a884d25

Please sign in to comment.