Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/x86 add #ifdef __HAVE_PCI_MSI_MSIX so this stil...



details:   https://anonhg.NetBSD.org/src/rev/42d5172754f4
branches:  trunk
changeset: 936127:42d5172754f4
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jul 19 16:20:36 2020 +0000

description:
add #ifdef __HAVE_PCI_MSI_MSIX so this still compiles with NO_PCI_MSI_MSIX

diffstat:

 sys/arch/xen/x86/pintr.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r d42e8a0971c3 -r 42d5172754f4 sys/arch/xen/x86/pintr.c
--- a/sys/arch/xen/x86/pintr.c  Sun Jul 19 16:17:00 2020 +0000
+++ b/sys/arch/xen/x86/pintr.c  Sun Jul 19 16:20:36 2020 +0000
@@ -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 @@
 
 #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 @@
 
        return ret;
 }
+#endif /* __HAVE_PCI_MSI_MSIX */
 
 /*
  * This function doesn't "allocate" anything. It merely translates our



Home | Main Index | Thread Index | Old Index