Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Mark diagnostic-only variables
details: https://anonhg.NetBSD.org/src/rev/34c401b0cb7b
branches: trunk
changeset: 790880:34c401b0cb7b
user: martin <martin%NetBSD.org@localhost>
date: Fri Oct 25 20:27:29 2013 +0000
description:
Mark diagnostic-only variables
diffstat:
sys/uvm/uvm_pager.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r e588d7d8c7be -r 34c401b0cb7b sys/uvm/uvm_pager.c
--- a/sys/uvm/uvm_pager.c Fri Oct 25 20:26:22 2013 +0000
+++ b/sys/uvm/uvm_pager.c Fri Oct 25 20:27:29 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_pager.c,v 1.108 2012/01/27 19:48:42 para Exp $ */
+/* $NetBSD: uvm_pager.c,v 1.109 2013/10/25 20:27:29 martin Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.108 2012/01/27 19:48:42 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_pager.c,v 1.109 2013/10/25 20:27:29 martin Exp $");
#include "opt_uvmhist.h"
#include "opt_readahead.h"
@@ -396,7 +396,7 @@
#if defined(VMSWAP)
if (swap) {
if (pg->uobject != NULL) {
- int oldslot;
+ int oldslot __diagused;
oldslot = uao_set_swslot(pg->uobject,
pg->offset >> PAGE_SHIFT, slot);
KASSERT(oldslot == swslot + i);
@@ -527,7 +527,7 @@
{
struct vm_page *pg;
paddr_t pa;
- bool rv;
+ bool rv __diagused;
rv = pmap_extract(pmap_kernel(), kva, &pa);
KASSERT(rv);
Home |
Main Index |
Thread Index |
Old Index