summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-02-18 16:43:26 +0000
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-10 14:44:33 -0500
commit260a7d4cfd26d8bad8ac3a7fce11de47491d7e00 (patch)
treefd6a9b399afa4dc20c028569effc6dca11114958 /arch/x86/pci
parent8448f0119a4309ef9626cf8e2dc5abb881e6dc2a (diff)
downloadop-kernel-dev-260a7d4cfd26d8bad8ac3a7fce11de47491d7e00.zip
op-kernel-dev-260a7d4cfd26d8bad8ac3a7fce11de47491d7e00.tar.gz
xen: pci: only define xen_initdom_setup_msi_irqs if CONFIG_XEN_DOM0
Fixes: CC arch/x86/pci/xen.o arch/x86/pci/xen.c:183: warning: 'xen_initdom_setup_msi_irqs' defined but not used Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r--arch/x86/pci/xen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
index 8634e1b..47c4688 100644
--- a/arch/x86/pci/xen.c
+++ b/arch/x86/pci/xen.c
@@ -203,6 +203,7 @@ static void xen_teardown_msi_irq(unsigned int irq)
xen_destroy_irq(irq);
}
+#ifdef CONFIG_XEN_DOM0
static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)
{
int irq, ret;
@@ -224,6 +225,7 @@ error:
return ret;
}
#endif
+#endif
static int xen_pcifront_enable_irq(struct pci_dev *dev)
{
OpenPOWER on IntegriCloud