summaryrefslogtreecommitdiff
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-06-03 22:36:28 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-06-03 22:36:28 +0000
commit92ca907f00842a1445679522aef13c9e68273696 (patch)
tree6bd26914910477ba1a1017322339b9a80d7401df /sys/dev/softraid.c
parentf86797d8b2c2b6a9bc50a9a02b31ecb3e0426102 (diff)
put raidc inside ifdef CRYPTO, since it won't work without it
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 007f53eadb3..5d60020e8fb 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.75 2007/06/03 22:33:35 tedu Exp $ */
+/* $OpenBSD: softraid.c,v 1.76 2007/06/03 22:36:27 tedu Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -911,6 +911,7 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user)
sd->sd_set_chunk_state = sr_raid_set_chunk_state;
sd->sd_set_vol_state = sr_raid_set_vol_state;
break;
+#ifdef CRYPTO
case 'c':
/* fill out discipline members */
sd->sd_type = SR_MD_RAIDC;
@@ -930,6 +931,7 @@ sr_ioctl_createraid(struct sr_softc *sc, struct bioc_createraid *bc, int user)
sd->sd_set_chunk_state = sr_raid_set_chunk_state;
sd->sd_set_vol_state = sr_raid_set_vol_state;
break;
+#endif
default:
printf("default %d\n", bc->bc_level);
goto unwind;
@@ -2889,6 +2891,7 @@ sr_raid1_recreate_wu(struct sr_workunit *wu)
} while (wup);
}
+#ifdef CRYPTO
/* RAID crypto functions */
struct cryptop *
sr_raidc_getcryptop(struct sr_workunit *wu, int encrypt)
@@ -3300,3 +3303,4 @@ sr_raidc_intr2(struct cryptop *crp)
return (0);
}
+#endif