diff options
author | Dou Liyang <douly.fnst@cn.fujitsu.com> | 2017-06-21 06:14:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-06-22 04:34:41 -0400 |
commit | a884d25f383133c845d23c2cce929ba15994ca62 (patch) | |
tree | bef8d6f4264ada3b9fab904022c0bf4e13c405f5 | |
parent | 9df8109fd7969b94ed2332ae828e0b08ae8cbf9a (diff) |
x86/apic: Make init_legacy_irqs() __init
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>
-rw-r--r-- | arch/x86/kernel/apic/vector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index f3557a1eb562..e66d8e48e456 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c | |||
@@ -405,7 +405,7 @@ int __init arch_probe_nr_irqs(void) | |||
405 | } | 405 | } |
406 | 406 | ||
407 | #ifdef CONFIG_X86_IO_APIC | 407 | #ifdef CONFIG_X86_IO_APIC |
408 | static void init_legacy_irqs(void) | 408 | static void __init init_legacy_irqs(void) |
409 | { | 409 | { |
410 | int i, node = cpu_to_node(0); | 410 | int i, node = cpu_to_node(0); |
411 | struct apic_chip_data *data; | 411 | struct apic_chip_data *data; |
@@ -424,7 +424,7 @@ static void init_legacy_irqs(void) | |||
424 | } | 424 | } |
425 | } | 425 | } |
426 | #else | 426 | #else |
427 | static void init_legacy_irqs(void) { } | 427 | static inline void init_legacy_irqs(void) { } |
428 | #endif | 428 | #endif |
429 | 429 | ||
430 | int __init arch_early_irq_init(void) | 430 | int __init arch_early_irq_init(void) |