x86/apic: Make arch_init_msi/htirq_domain __init
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Thu, 22 Jun 2017 03:15:41 +0000 (11:15 +0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Jun 2017 08:34:42 +0000 (10:34 +0200)
These two functions are only called by arch_early_irq_init(), which
is an __init function, so mark them __init as well.

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/1498101341-10182-1-git-send-email-douly.fnst@cn.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/apic/htirq.c
arch/x86/kernel/apic/msi.c

index ae50d3454d7874e98f1e71e3402fb786dacb67c7..81ff48905623d2e05e51e8a1c264b554913e2ff0 100644 (file)
@@ -150,7 +150,7 @@ static const struct irq_domain_ops htirq_domain_ops = {
        .deactivate     = htirq_domain_deactivate,
 };
 
-void arch_init_htirq_domain(struct irq_domain *parent)
+void __init arch_init_htirq_domain(struct irq_domain *parent)
 {
        if (disable_apic)
                return;
index c61aec7e65f4f2b40fbb3b8b765b7a2250bb6df5..4c5d1882bec585fffb7742a48c5d1019bd5cb727 100644 (file)
@@ -136,7 +136,7 @@ static struct msi_domain_info pci_msi_domain_info = {
        .handler_name   = "edge",
 };
 
-void arch_init_msi_domain(struct irq_domain *parent)
+void __init arch_init_msi_domain(struct irq_domain *parent)
 {
        if (disable_apic)
                return;