Skip to content

Commit

Permalink
x86/xen: Make xen_msi_init() static and rename it to xen_hvm_msi_init()
Browse files Browse the repository at this point in the history
The only user is in the same file and the name is too generic because this
function is only ever used for HVM domains.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Juergen Gross<jgross@suse.com>
Link: https://lore.kernel.org/r/20200826112333.234097629@linutronix.de
  • Loading branch information
Thomas Gleixner committed Sep 16, 2020
1 parent 2fd6026 commit 2905c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/pci/xen.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ int __init pci_xen_init(void)
}

#ifdef CONFIG_PCI_MSI
void __init xen_msi_init(void)
static void __init xen_hvm_msi_init(void)
{
if (!disable_apic) {
/*
Expand Down Expand Up @@ -460,7 +460,7 @@ int __init pci_xen_hvm_init(void)
* We need to wait until after x2apic is initialized
* before we can set MSI IRQ ops.
*/
x86_platform.apic_post_init = xen_msi_init;
x86_platform.apic_post_init = xen_hvm_msi_init;
#endif
return 0;
}
Expand Down

0 comments on commit 2905c50

Please sign in to comment.