diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-02-18 11:43:26 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-10 14:44:33 -0500 |
commit | 260a7d4cfd26d8bad8ac3a7fce11de47491d7e00 (patch) | |
tree | fd6a9b399afa4dc20c028569effc6dca11114958 | |
parent | 8448f0119a4309ef9626cf8e2dc5abb881e6dc2a (diff) |
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>
-rw-r--r-- | arch/x86/pci/xen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c index 8634e1b49c03..47c4688dcd48 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) | |||
203 | xen_destroy_irq(irq); | 203 | xen_destroy_irq(irq); |
204 | } | 204 | } |
205 | 205 | ||
206 | #ifdef CONFIG_XEN_DOM0 | ||
206 | static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) | 207 | static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) |
207 | { | 208 | { |
208 | int irq, ret; | 209 | int irq, ret; |
@@ -224,6 +225,7 @@ error: | |||
224 | return ret; | 225 | return ret; |
225 | } | 226 | } |
226 | #endif | 227 | #endif |
228 | #endif | ||
227 | 229 | ||
228 | static int xen_pcifront_enable_irq(struct pci_dev *dev) | 230 | static int xen_pcifront_enable_irq(struct pci_dev *dev) |
229 | { | 231 | { |