[Midnightbsd-cvs] src [9466] trunk/sys/dev/aha/aha_mca.c: Fix aha(4) build with i386 LINT (which includes 'device mca').

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Mar 5 14:41:37 EST 2017


Revision: 9466
          http://svnweb.midnightbsd.org/src/?rev=9466
Author:   laffer1
Date:     2017-03-05 14:41:37 -0500 (Sun, 05 Mar 2017)
Log Message:
-----------
Fix aha(4) build with i386 LINT (which includes 'device mca').

Modified Paths:
--------------
    trunk/sys/dev/aha/aha_mca.c

Modified: trunk/sys/dev/aha/aha_mca.c
===================================================================
--- trunk/sys/dev/aha/aha_mca.c	2017-03-05 19:41:04 UTC (rev 9465)
+++ trunk/sys/dev/aha/aha_mca.c	2017-03-05 19:41:37 UTC (rev 9466)
@@ -32,6 +32,7 @@
 
 #include <sys/types.h>
 #include <sys/param.h>
+#include <sys/systm.h>
 #include <sys/kernel.h>
 #include <sys/lock.h>
 #include <sys/mutex.h>
@@ -192,7 +193,7 @@
 	}
 
 	error = bus_setup_intr(dev, sc->irq, INTR_TYPE_CAM | INTR_ENTROPY |
-	    INTR_MPSAFE, NULL, aha_intr, sc, &aha->ih);
+	    INTR_MPSAFE, NULL, aha_intr, sc, &sc->ih);
 	if (error) {
 		device_printf(dev, "Unable to register interrupt handler\n");
 		aha_detach(sc);



More information about the Midnightbsd-cvs mailing list