Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci/ixgbe fix build of ixv enabled NO_PCI_MSI_MSIX o...



details:   https://anonhg.NetBSD.org/src/rev/385b451b76ab
branches:  trunk
changeset: 819330:385b451b76ab
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Mon Nov 28 06:09:19 2016 +0000

description:
fix build of ixv enabled NO_PCI_MSI_MSIX option.

diffstat:

 sys/dev/pci/ixgbe/ixv.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 01f9929431b3 -r 385b451b76ab sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Mon Nov 28 05:00:41 2016 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Mon Nov 28 06:09:19 2016 +0000
@@ -31,7 +31,7 @@
 
 ******************************************************************************/
 /*$FreeBSD: head/sys/dev/ixgbe/ixv.c 275358 2014-12-01 11:45:24Z hselasky $*/
-/*$NetBSD: ixv.c,v 1.18 2016/11/25 13:33:24 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.19 2016/11/28 06:09:19 knakahara Exp $*/
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -264,9 +264,9 @@
 static int
 ixv_probe(device_t dev, cfdata_t cf, void *aux)
 {
+#ifdef __HAVE_PCI_MSI_MSIX
        const struct pci_attach_args *pa = aux;
 
-#ifdef __HAVE_PCI_MSI_MSIX
        return (ixv_lookup(pa) != NULL) ? 1 : 0;
 #else
        return 0;



Home | Main Index | Thread Index | Old Index