summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfi.c
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>2007-05-29 22:17:51 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>2007-05-29 22:17:51 +0000
commit83c440ccaffd186a8da77c6fe846aa59632879f0 (patch)
tree1d4d99ba984f52daaba5cfe3431dfe1607259981 /sys/dev/ic/mfi.c
parent84e64175f40a4f363b2a0ab44b2b6658829529c4 (diff)
sprinkle some SMALL_KERNEL to permit bio/softraid to run on boot media
ok marco@ then suggested deraadt@
Diffstat (limited to 'sys/dev/ic/mfi.c')
-rw-r--r--sys/dev/ic/mfi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index af9498e6202..0ed0ee857b9 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.71 2007/03/22 16:55:31 deraadt Exp $ */
+/* $OpenBSD: mfi.c,v 1.72 2007/05/29 22:17:50 todd Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -104,8 +104,10 @@ int mfi_ioctl_alarm(struct mfi_softc *, struct bioc_alarm *);
int mfi_ioctl_blink(struct mfi_softc *sc, struct bioc_blink *);
int mfi_ioctl_setstate(struct mfi_softc *, struct bioc_setstate *);
int mfi_bio_hs(struct mfi_softc *, int, int, void *);
+#ifndef SMALL_KERNEL
int mfi_create_sensors(struct mfi_softc *);
void mfi_refresh_sensors(void *);
+#endif /* SMALL_KERNEL */
#endif /* NBIO > 0 */
struct mfi_ccb *
@@ -682,8 +684,10 @@ mfi_attach(struct mfi_softc *sc)
else
sc->sc_ioctl = mfi_ioctl;
+#ifndef SMALL_KERNEL
if (mfi_create_sensors(sc) != 0)
printf("%s: unable to create sensors\n", DEVNAME(sc));
+#endif
#endif /* NBIO > 0 */
return (0);
@@ -1768,6 +1772,7 @@ freeme:
return (rv);
}
+#ifndef SMALL_KERNEL
int
mfi_create_sensors(struct mfi_softc *sc)
{
@@ -1865,4 +1870,5 @@ mfi_refresh_sensors(void *arg)
}
}
+#endif /* SMALL_KERNEL */
#endif /* NBIO > 0 */