]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: Use correct #ifdef guard for xen_initdom_restore_msi()
authorArnd Bergmann <arnd@arndb.de>
Wed, 15 Dec 2021 14:01:59 +0000 (15:01 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 15 Dec 2021 15:13:23 +0000 (16:13 +0100)
commit3d21775af77c61535c28f4d1e4a3e3e3294f515e
treee949cc53bead6085e7feb239f07c4c7219c363e8
parent690fdfac5e0d7e95068bc9c675efc14ffece574f
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: 3a26f6a59780 ("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
arch/x86/include/asm/xen/hypervisor.h