diff --git a/sys/dev/raidframe/rf_stripelocks.c b/sys/dev/raidframe/rf_stripelocks.c index 10ea5f033ae4..07a76cb186f0 100644 --- a/sys/dev/raidframe/rf_stripelocks.c +++ b/sys/dev/raidframe/rf_stripelocks.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_stripelocks.c,v 1.15 2002/09/23 04:34:46 oster Exp $ */ +/* $NetBSD: rf_stripelocks.c,v 1.16 2003/04/10 04:10:17 simonb Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -57,7 +57,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: rf_stripelocks.c,v 1.15 2002/09/23 04:34:46 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_stripelocks.c,v 1.16 2003/04/10 04:10:17 simonb Exp $"); #include @@ -101,6 +101,7 @@ __KERNEL_RCSID(0, "$NetBSD: rf_stripelocks.c,v 1.15 2002/09/23 04:34:46 oster Ex static void AddToWaitersQueue(RF_StripeLockDesc_t * lockDesc, RF_LockReqDesc_t * lockReqDesc); static RF_StripeLockDesc_t *AllocStripeLockDesc(RF_StripeNum_t stripeID); static void FreeStripeLockDesc(RF_StripeLockDesc_t * p); +static RF_LockTableEntry_t *rf_MakeLockTable(void); #if RF_DEBUG_STRIPELOCK static void PrintLockedStripes(RF_LockTableEntry_t * lockTable); #endif @@ -136,6 +137,7 @@ static RF_FreeList_t *rf_stripelock_freelist; #define RF_STRIPELOCK_INC 8 #define RF_STRIPELOCK_INITIAL 32 +static void rf_ShutdownStripeLocks(RF_LockTableEntry_t * lockTable); static void rf_ShutdownStripeLockFreeList(void *); static void rf_RaidShutdownStripeLocks(void *); @@ -173,7 +175,7 @@ rf_ConfigureStripeLockFreeList(listp) return (0); } -RF_LockTableEntry_t * +static RF_LockTableEntry_t * rf_MakeLockTable() { RF_LockTableEntry_t *lockTable; @@ -193,7 +195,7 @@ rf_MakeLockTable() return (lockTable); } -void +static void rf_ShutdownStripeLocks(RF_LockTableEntry_t * lockTable) { int i; diff --git a/sys/dev/raidframe/rf_stripelocks.h b/sys/dev/raidframe/rf_stripelocks.h index 10190f9ca2ac..349c711cbca8 100644 --- a/sys/dev/raidframe/rf_stripelocks.h +++ b/sys/dev/raidframe/rf_stripelocks.h @@ -1,4 +1,4 @@ -/* $NetBSD: rf_stripelocks.h,v 1.4 2001/10/04 15:58:56 oster Exp $ */ +/* $NetBSD: rf_stripelocks.h,v 1.5 2003/04/10 04:10:17 simonb Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -105,8 +105,6 @@ struct RF_LockTableEntry_s { } int rf_ConfigureStripeLockFreeList(RF_ShutdownList_t ** listp); -RF_LockTableEntry_t *rf_MakeLockTable(void); -void rf_ShutdownStripeLocks(RF_LockTableEntry_t * lockTable); int rf_ConfigureStripeLocks(RF_ShutdownList_t ** listp, RF_Raid_t * raidPtr, RF_Config_t * cfgPtr);