summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2001-01-26 05:16:58 +0000
committeroster <oster@NetBSD.org>2001-01-26 05:16:58 +0000
commite47b177bc08f7a07500c36973a5c0788b8d00b91 (patch)
treeb29268342be32161fe89ae040a4cc6871cc3fd2f /sys/dev/raidframe
parent1763f954c7ebe39c038e244fca053d9a2540c6b8 (diff)
Nobody calls these bits if we arn't doing RAID5 with rotated spare stuff.
Add an #if.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_raid5_rotatedspare.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/raidframe/rf_raid5_rotatedspare.c b/sys/dev/raidframe/rf_raid5_rotatedspare.c
index 183ef70c14c..5213bff4cb2 100644
--- a/sys/dev/raidframe/rf_raid5_rotatedspare.c
+++ b/sys/dev/raidframe/rf_raid5_rotatedspare.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_raid5_rotatedspare.c,v 1.4 2000/01/07 03:41:03 oster Exp $ */
+/* $NetBSD: rf_raid5_rotatedspare.c,v 1.5 2001/01/26 05:16:58 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -32,6 +32,10 @@
*
**************************************************************************/
+#include "rf_archs.h"
+
+#if RF_INCLUDE_RAID5_RS > 0
+
#include "rf_raid.h"
#include "rf_raid5.h"
#include "rf_dag.h"
@@ -167,3 +171,4 @@ rf_MapSIDToPSIDRAID5_RS(
*which_ru = 0;
*psID = stripeID;
}
+#endif /* RF_INCLUDE_RAID5_RS > 0 */