Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1671590
| From | Dou Liyang <douly.fnst@cn.fujitsu.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] x86/apic: Make init_legacy_irqs() __init |
| Date | 2017-06-21 12:20 +0200 |
| Message-ID | <tUKTT-4Pr-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This function is only called by arch_early_irq_init() which is an
`initialization' function, So mark it __init as well. In addition
mark it inline for the X86_IO_APIC=n case.
Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com>
---
arch/x86/kernel/apic/vector.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c
index f3557a1..e66d8e4 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)
}
#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;
@@ -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)
--
2.5.5
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] x86/apic: Make init_legacy_irqs() __init Dou Liyang <douly.fnst@cn.fujitsu.com> - 2017-06-21 12:20 +0200
[PATCH 2/2] x86/apic: Make arch_init_msi/htirq_domain __init Dou Liyang <douly.fnst@cn.fujitsu.com> - 2017-06-22 05:20 +0200
[tip:x86/apic] x86/apic: Make arch_init_msi/htirq_domain __init tip-bot for Dou Liyang <tipbot@zytor.com> - 2017-06-22 13:20 +0200
[tip:x86/apic] x86/apic: Make init_legacy_irqs() __init tip-bot for Dou Liyang <tipbot@zytor.com> - 2017-06-22 13:20 +0200
csiph-web