summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-09-21 00:47:59 +0000
committeroster <oster@NetBSD.org>2002-09-21 00:47:59 +0000
commit5451819a684e3cb028e56458337575ac893f0304 (patch)
tree9ba8b471156be3cde8d0c24a772ed9232dc2f3a6 /sys/dev/raidframe
parentec7171cd75b32eb0d0577ed35bef1da2c7f63682 (diff)
rf_gcd, rf_free_2d_array, rf_make_1d_array, and rf_free_1d_array are
only used by the declustering bits. Thanks Krister!
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_utils.c b/sys/dev/raidframe/rf_utils.c
index c56efcfa9ca..5a314c83647 100644
--- a/sys/dev/raidframe/rf_utils.c
+++ b/sys/dev/raidframe/rf_utils.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_utils.c,v 1.9 2002/07/13 16:53:44 oster Exp $ */
+/* $NetBSD: rf_utils.c,v 1.10 2002/09/21 00:47:59 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
****************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_utils.c,v 1.9 2002/07/13 16:53:44 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_utils.c,v 1.10 2002/09/21 00:47:59 oster Exp $");
#include "rf_archs.h"
#include "rf_utils.h"
@@ -57,6 +57,8 @@ rf_make_2d_array(b, k, allocList)
return (retval);
}
+#if (RF_INCLUDE_PARITY_DECLUSTERING > 0) || (RF_INCLUDE_PARITY_DECLUSTERING_PQ > 0)
+
void
rf_free_2d_array(a, b, k)
RF_RowCol_t **a;
@@ -91,6 +93,7 @@ rf_free_1d_array(a, n)
{
RF_Free(a, n * sizeof(RF_RowCol_t));
}
+ 0)
/* Euclid's algorithm: finds and returns the greatest common divisor
* between a and b. (MCH)
*/
@@ -108,6 +111,7 @@ rf_gcd(m, n)
}
return (n);
}
+#endif
/* these convert between text and integer. Apparently the regular C macros
* for doing this are not available in the kernel
*/