Mark diagnostic-only variables

This commit is contained in:
martin 2013-10-25 20:25:25 +00:00
parent c9e83a001d
commit f5b6eb9494

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvm_map.c,v 1.325 2013/10/25 14:20:11 martin Exp $ */
/* $NetBSD: uvm_map.c,v 1.326 2013/10/25 20:25:25 martin Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.325 2013/10/25 14:20:11 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.326 2013/10/25 20:25:25 martin Exp $");
#include "opt_ddb.h"
#include "opt_uvmhist.h"
@ -404,7 +404,7 @@ uvm_rb_fixup(struct vm_map *map, struct vm_map_entry *entry)
static void
uvm_rb_insert(struct vm_map *map, struct vm_map_entry *entry)
{
struct vm_map_entry *ret;
struct vm_map_entry *ret __diagused;
entry->gap = entry->maxgap = uvm_rb_gap(entry);
if (entry->prev != &map->header)
@ -1798,7 +1798,7 @@ uvm_map_findspace(struct vm_map *map, vaddr_t hint, vsize_t length,
{
struct vm_map_entry *entry;
struct vm_map_entry *child, *prev, *tmp;
vaddr_t orig_hint;
vaddr_t orig_hint __diagused;
const int topdown = map->flags & VM_MAP_TOPDOWN;
UVMHIST_FUNC("uvm_map_findspace");
UVMHIST_CALLED(maphist);