Skip to contentSkip to conversation

xen/pci: Fix build without XEN_DOM0

PATCH New Ian Campbell 1 participant 1 message Mar 11, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/pci: Fix build without XEN_DOM0

The xen_*_device_domain_owner functions are stubbed out in <asm/xen/pci.h> if CONFIG_XEN_DOM0 is not enabled so extend the ifdef in arch/x86/pci/xen.c to cover the function bodies.

Cc Konrad Rzeszutek Wilk <[email protected]>
---
 arch/x86/pci/xen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/pci/xen.c +1 -1
index 393981f..ca58a73 100644
@@ -471,7 +471,6 @@ void __init xen_setup_pirqs(void)
 			trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE);
 	}
 }
-#endif
 
 struct xen_device_domain_owner {
 	domid_t domain;
@@ -545,3 +544,4 @@ int xen_unregister_device_domain_owner(struct pci_dev *dev)
 	return 0;
 }
 EXPORT_SYMBOL_GPL(xen_unregister_device_domain_owner);
+#endif
Signature · 1 line
1.5.6.5