summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2001-01-27 02:13:34 +0000
committeroster <oster@NetBSD.org>2001-01-27 02:13:34 +0000
commit3edd34f0bec2b7f9b5121cb25e64e4e4783956de (patch)
treef2c9419588daf23f8e0fa4dc9c81b361512bdc89 /sys/dev/raidframe
parentb6abea6f2b5f9e8564c623f79d026e518693f4bf (diff)
More #if's. This needs some serious rototillage, but a few #if's will
suffice for now.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_layout.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_layout.c b/sys/dev/raidframe/rf_layout.c
index cca16ba3997..a4ca1570bcc 100644
--- a/sys/dev/raidframe/rf_layout.c
+++ b/sys/dev/raidframe/rf_layout.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_layout.c,v 1.7 2001/01/26 04:40:03 oster Exp $ */
+/* $NetBSD: rf_layout.c,v 1.8 2001/01/27 02:13:34 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -88,12 +88,21 @@ RF_AccessState_t *NothingAtAll = DefaultStates;
#if defined(__NetBSD__) && defined(_KERNEL)
/* XXX Remove static so GCC doesn't complain about these being unused! */
+#if RF_INCLUDE_PARITY_DECLUSTERING_DS > 0
int distSpareYes = 1;
+#endif
+#if (RF_INCLUDE_PARITY_DECLUSTERING > 0) || (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_EVENODD > 0)
int distSpareNo = 0;
+#endif
#else
+#if RF_INCLUDE_PARITY_DECLUSTERING_DS > 0
static int distSpareYes = 1;
+#endif
+#if (RF_INCLUDE_PARITY_DECLUSTERING > 0) || (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_EVENODD > 0)
static int distSpareNo = 0;
#endif
+#endif
+
#ifdef _KERNEL
#define RF_NK2(a,b)
#else /* _KERNEL */