diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-12-15 15:01:59 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2021-12-15 16:13:23 +0100 |
commit | 91f7d2dbf952f54442fa81bb62f78ee023179bf9 (patch) | |
tree | e949cc53bead6085e7feb239f07c4c7219c363e8 /drivers/pci | |
parent | 09eb3ad55fef8d62edb74d5fe3a6720b6b467463 (diff) | |
download | linux-91f7d2dbf952f54442fa81bb62f78ee023179bf9.tar.bz2 |
x86/xen: Use correct #ifdef guard for xen_initdom_restore_msi()
The #ifdef check around the definition doesn't match the one around the
declaration, leading to a link failure when CONFIG_XEN_DOM0 is enabled
but CONFIG_XEN_PV_DOM0 is not:
x86_64-linux-ld: arch/x86/kernel/apic/msi.o: in function `arch_restore_msi_irqs':
msi.c:(.text+0x29a): undefined reference to `xen_initdom_restore_msi'
Change the declaration to use the same check that was already present
around the function definition.
Fixes: ae72f3156729 ("PCI/MSI: Make arch_restore_msi_irqs() less horrible.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20211215140209.451379-1-arnd@kernel.org
Diffstat (limited to 'drivers/pci')
0 files changed, 0 insertions, 0 deletions