Skip to content

Commit

Permalink
x86/apic: Make arch_init_msi/htirq_domain __init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dou Liyang authored and Ingo Molnar committed Jun 22, 2017
1 parent a884d25 commit 538ac46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/htirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/apic/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 538ac46

Please sign in to comment.