Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt make compilable at NPCI==0



details:   https://anonhg.NetBSD.org/src/rev/4ceaf7b989d0
branches:  trunk
changeset: 1024788:4ceaf7b989d0
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Nov 04 21:31:30 2021 +0000

description:
make compilable at NPCI==0

diffstat:

 sys/arch/arm/fdt/gic_fdt.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r b53961aa7720 -r 4ceaf7b989d0 sys/arch/arm/fdt/gic_fdt.c
--- a/sys/arch/arm/fdt/gic_fdt.c        Thu Nov 04 20:31:04 2021 +0000
+++ b/sys/arch/arm/fdt/gic_fdt.c        Thu Nov 04 21:31:30 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gic_fdt.c,v 1.23 2021/08/07 16:18:43 thorpej Exp $ */
+/* $NetBSD: gic_fdt.c,v 1.24 2021/11/04 21:31:30 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2015-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "pci.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gic_fdt.c,v 1.23 2021/08/07 16:18:43 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gic_fdt.c,v 1.24 2021/11/04 21:31:30 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -117,10 +117,12 @@
        DEVICE_COMPAT_EOL
 };
 
+#if NPCI > 0 && defined(__HAVE_PCI_MSI_MSIX)
 static const struct device_compatible_entry v2m_compat_data[] = {
        { .compat = "arm,gic-v2m-frame" },
        DEVICE_COMPAT_EOL
 };
+#endif
 
 static int
 gic_fdt_match(device_t parent, cfdata_t cf, void *aux)



Home | Main Index | Thread Index | Old Index