summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-09-21 01:07:37 +0000
committeroster <oster@NetBSD.org>2002-09-21 01:07:37 +0000
commit24b54af7fb1d1e91ce59152ca429517fcf90d554 (patch)
tree94429fd11197800d56e5862c3799aa5e285872ac /sys/dev/raidframe
parenta16692eff63eb2425c3fc27c10b427c12459389f (diff)
Protect more stuff that's only used by the declustering code.
Thanks Krister!
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_decluster.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_decluster.c b/sys/dev/raidframe/rf_decluster.c
index 82405c45e61..fd646747ac8 100644
--- a/sys/dev/raidframe/rf_decluster.c
+++ b/sys/dev/raidframe/rf_decluster.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_decluster.c,v 1.9 2002/05/22 15:40:49 wiz Exp $ */
+/* $NetBSD: rf_decluster.c,v 1.10 2002/09/21 01:07:37 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -48,7 +48,7 @@
*--------------------------------------------------------------------*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_decluster.c,v 1.9 2002/05/22 15:40:49 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_decluster.c,v 1.10 2002/09/21 01:07:37 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -679,6 +679,7 @@ rf_InstallSpareTable(
* XXX */
return (retcode);
}
+#if (RF_INCLUDE_PARITY_DECLUSTERING > 0) || (RF_INCLUDE_PARITY_DECLUSTERING_PQ > 0)
/*
* Invoked via ioctl to install a spare table in the kernel.
*/
@@ -728,6 +729,7 @@ rf_GetNumSpareRUsDeclustered(raidPtr)
return (((RF_DeclusteredConfigInfo_t *) layoutPtr->layoutSpecificInfo)->TotSparePUsPerDisk);
}
+#endif /* (RF_INCLUDE_PARITY_DECLUSTERING > 0) || (RF_INCLUDE_PARITY_DECLUSTERING_PQ > 0) */
void
rf_FreeSpareTable(raidPtr)