Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe rf_compute_workload_shift() is only used b...



details:   https://anonhg.NetBSD.org/src/rev/311685d61ede
branches:  trunk
changeset: 534027:311685d61ede
user:      oster <oster%NetBSD.org@localhost>
date:      Sat Jul 13 19:56:55 2002 +0000

description:
rf_compute_workload_shift() is only used by the CHAINDECLUSTER stuff,
so only include it if needed.

diffstat:

 sys/dev/raidframe/rf_dagutils.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r dfc4857bcf7d -r 311685d61ede sys/dev/raidframe/rf_dagutils.c
--- a/sys/dev/raidframe/rf_dagutils.c   Sat Jul 13 19:35:34 2002 +0000
+++ b/sys/dev/raidframe/rf_dagutils.c   Sat Jul 13 19:56:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_dagutils.c,v 1.10 2002/03/04 01:38:32 wiz Exp $     */
+/*     $NetBSD: rf_dagutils.c,v 1.11 2002/07/13 19:56:55 oster Exp $   */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
  *****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.10 2002/03/04 01:38:32 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_dagutils.c,v 1.11 2002/07/13 19:56:55 oster Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -1076,6 +1076,9 @@
                    rf_StripeUnitOffset(layoutPtr, dest->startSector);
        }
 }
+
+#if (RF_INCLUDE_CHAINDECLUSTER > 0)
+
 /*
  * Want the highest of these primes to be the largest one
  * less than the max expected number of columns (won't hurt
@@ -1167,6 +1170,8 @@
        }
        return (ret);
 }
+#endif /* (RF_INCLUDE_CHAINDECLUSTER > 0) */
+
 /*
  * Disk selection routines
  */



Home | Main Index | Thread Index | Old Index