Module Name: src
Committed By: jdolecek
Date: Sun Jul 19 16:20:36 UTC 2020
Modified Files:
src/sys/arch/xen/x86: pintr.c
Log Message:
add #ifdef __HAVE_PCI_MSI_MSIX so this still compiles with NO_PCI_MSI_MSIX
To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/xen/x86/pintr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/x86/pintr.c
diff -u src/sys/arch/xen/x86/pintr.c:1.18 src/sys/arch/xen/x86/pintr.c:1.19
--- src/sys/arch/xen/x86/pintr.c:1.18 Sun Jul 19 14:27:07 2020
+++ src/sys/arch/xen/x86/pintr.c Sun Jul 19 16:20:36 2020
@@ -103,7 +103,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.18 2020/07/19 14:27:07 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pintr.c,v 1.19 2020/07/19 16:20:36 jdolecek Exp $");
#include "opt_multiprocessor.h"
#include "opt_xen.h"
@@ -164,6 +164,7 @@ short irq2port[NR_EVENT_CHANNELS] = {0};
#if defined(DOM0OPS) || NPCI > 0
+#ifdef __HAVE_PCI_MSI_MSIX
static int
xen_map_msi_pirq(struct pic *pic, int count, int *gsi)
{
@@ -223,6 +224,7 @@ xen_pci_msi_probe(struct pic *pic, int c
return ret;
}
+#endif /* __HAVE_PCI_MSI_MSIX */
/*
* This function doesn't "allocate" anything. It merely translates our