Declare this static simplelock data only when MULTIPROCESSOR or LOCKDEBUG is

defined to prevent compiler warning.
This commit is contained in:
enami 2000-08-21 06:42:57 +00:00
parent 7da965dade
commit d707b78562
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_subr.c,v 1.136 2000/08/21 02:16:30 sommerfeld Exp $ */
/* $NetBSD: vfs_subr.c,v 1.137 2000/08/21 06:42:57 enami Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -147,7 +147,9 @@ struct vfs_list_head vfs_list = /* vfs list */
struct nfs_public nfs_pub; /* publicly exported FS */
struct simplelock mountlist_slock = SIMPLELOCK_INITIALIZER;
#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)
static struct simplelock mntid_slock = SIMPLELOCK_INITIALIZER;
#endif
struct simplelock mntvnode_slock = SIMPLELOCK_INITIALIZER;
struct simplelock vnode_free_list_slock = SIMPLELOCK_INITIALIZER;
struct simplelock spechash_slock = SIMPLELOCK_INITIALIZER;