summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-03-22 07:02:33 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-03-22 07:02:33 +0000
commit5e5814bd6ddd36720cce4ed90cde674ae9e101a8 (patch)
tree1e3f884f2781bee1473af007ec850d7b4fc8b7d4 /sys/dev
parent624b8a88e86e5fa0f27505498321b6f789c39821 (diff)
Put recently added bio and sensors stuff under #if NBIO > 0 and
#ifndef SMALL_KERNEL respectively.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ips.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/ips.c b/sys/dev/pci/ips.c
index c36baa888ff..ff0f433f8e3 100644
--- a/sys/dev/pci/ips.c
+++ b/sys/dev/pci/ips.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ips.c,v 1.88 2009/03/21 17:49:32 grange Exp $ */
+/* $OpenBSD: ips.c,v 1.89 2009/03/22 07:02:32 grange Exp $ */
/*
* Copyright (c) 2006, 2007, 2009 Alexander Yurchenko <grange@openbsd.org>
@@ -1372,7 +1372,7 @@ ips_sensors(void *arg)
if (rebuild)
(void)ips_getrblstat(sc, 0);
}
-#endif
+#endif /* !SMALL_KERNEL */
int
ips_load_xs(struct ips_softc *sc, struct ips_ccb *ccb, struct scsi_xfer *xs)
@@ -1849,6 +1849,7 @@ ips_getconf(struct ips_softc *sc, int flags)
return (ips_cmd(sc, ccb));
}
+#ifndef SMALL_KERNEL
int
ips_getrblstat(struct ips_softc *sc, int flags)
{
@@ -1872,6 +1873,7 @@ ips_getrblstat(struct ips_softc *sc, int flags)
return (ips_cmd(sc, ccb));
}
+#endif /* !SMALL_KERNEL */
int
ips_getpg5(struct ips_softc *sc, int flags)
@@ -1898,6 +1900,7 @@ ips_getpg5(struct ips_softc *sc, int flags)
return (ips_cmd(sc, ccb));
}
+#if NBIO > 0
int
ips_setstate(struct ips_softc *sc, int chan, int target, int state, int flags)
{
@@ -1948,6 +1951,7 @@ ips_rebuild(struct ips_softc *sc, int chan, int target, int nchan,
return (ips_cmd(sc, ccb));
}
+#endif /* NBIO > 0 */
void
ips_copperhead_exec(struct ips_softc *sc, struct ips_ccb *ccb)