Mark diagnostic-only variables

This commit is contained in:
martin 2013-10-25 20:37:17 +00:00
parent 419cac9e69
commit 33ce426346
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_mount.c,v 1.21 2013/09/30 18:58:00 hannken Exp $ */
/* $NetBSD: vfs_mount.c,v 1.22 2013/10/25 20:37:17 martin Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.21 2013/09/30 18:58:00 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.22 2013/10/25 20:37:17 martin Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -130,7 +130,7 @@ struct mount *
vfs_mountalloc(struct vfsops *vfsops, vnode_t *vp)
{
struct mount *mp;
int error;
int error __diagused;
mp = kmem_zalloc(sizeof(*mp), KM_SLEEP);
if (mp == NULL)
@ -1233,7 +1233,7 @@ mount_specific_key_delete(specificdata_key_t key)
void
mount_initspecific(struct mount *mp)
{
int error;
int error __diagused;
error = specificdata_init(mount_specificdata_domain,
&mp->mnt_specdataref);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_trans.c,v 1.27 2013/09/30 18:58:00 hannken Exp $ */
/* $NetBSD: vfs_trans.c,v 1.28 2013/10/25 20:38:10 martin Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.27 2013/09/30 18:58:00 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_trans.c,v 1.28 2013/10/25 20:38:10 martin Exp $");
/*
* File system transaction operations.
@ -99,7 +99,7 @@ static void cow_change_done(const struct mount *);
void
fstrans_init(void)
{
int error;
int error __diagused;
error = lwp_specific_key_create(&lwp_data_key, fstrans_lwp_dtor);
KASSERT(error == 0);
@ -510,7 +510,7 @@ static bool
cow_state_change_done(const struct mount *mp)
{
struct fstrans_lwp_info *fli;
struct fstrans_mount_info *fmi;
struct fstrans_mount_info *fmi __diagused;
fmi = mp->mnt_transinfo;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_vnode.c,v 1.21 2013/09/30 15:24:14 hannken Exp $ */
/* $NetBSD: vfs_vnode.c,v 1.22 2013/10/25 20:39:40 martin Exp $ */
/*-
* Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@ -126,7 +126,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.21 2013/09/30 15:24:14 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_vnode.c,v 1.22 2013/10/25 20:39:40 martin Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -183,7 +183,7 @@ extern int (**dead_vnodeop_p)(void *);
void
vfs_vnode_sysinit(void)
{
int error;
int error __diagused;
vnode_cache = pool_cache_init(sizeof(vnode_t), 0, 0, 0, "vnodepl",
NULL, IPL_NONE, NULL, NULL, NULL);
@ -359,7 +359,7 @@ int
getnewvnode(enum vtagtype tag, struct mount *mp, int (**vops)(void *),
kmutex_t *slock, vnode_t **vpp)
{
struct uvm_object *uobj;
struct uvm_object *uobj __diagused;
vnode_t *vp;
int error = 0;