Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci make this compile without bio(4)



details:   https://anonhg.NetBSD.org/src/rev/51f5fbbe2088
branches:  trunk
changeset: 937089:51f5fbbe2088
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Sat Aug 08 19:39:28 2020 +0000

description:
make this compile without bio(4)

diffstat:

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

diffs (29 lines):

diff -r 15f4523c3e81 -r 51f5fbbe2088 sys/dev/pci/mpii.c
--- a/sys/dev/pci/mpii.c        Sat Aug 08 19:26:33 2020 +0000
+++ b/sys/dev/pci/mpii.c        Sat Aug 08 19:39:28 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpii.c,v 1.24 2019/11/28 17:09:10 maxv Exp $ */
+/* $NetBSD: mpii.c,v 1.25 2020/08/08 19:39:28 jnemeth Exp $ */
 /*     $OpenBSD: mpii.c,v 1.115 2018/08/14 05:22:21 jmatthew Exp $     */
 /*
  * Copyright (c) 2010, 2012 Mike Belopuhov
@@ -20,7 +20,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.24 2019/11/28 17:09:10 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.25 2020/08/08 19:39:28 jnemeth Exp $");
 
 #include "bio.h"
 
@@ -244,8 +244,10 @@
        struct workqueue        *sc_evt_ack_wq;
        struct work             sc_evt_ack_work;
 
+#if NBIO > 0
        struct sysmon_envsys    *sc_sme;
        envsys_data_t           *sc_sensors;
+#endif
 };
 
 static int     mpii_match(device_t, cfdata_t, void *);



Home | Main Index | Thread Index | Old Index