Module Name:    src
Committed By:   jnemeth
Date:           Sat Aug  8 19:39:28 UTC 2020

Modified Files:
        src/sys/dev/pci: mpii.c

Log Message:
make this compile without bio(4)


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/dev/pci/mpii.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/dev/pci/mpii.c
diff -u src/sys/dev/pci/mpii.c:1.24 src/sys/dev/pci/mpii.c:1.25
--- src/sys/dev/pci/mpii.c:1.24	Thu Nov 28 17:09:10 2019
+++ src/sys/dev/pci/mpii.c	Sat Aug  8 19:39:28 2020
@@ -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 mpii_softc {
 	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 *);

Reply via email to