Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/uvm Mark a diagnostic-only variable



details:   https://anonhg.NetBSD.org/src/rev/c8d87173475e
branches:  trunk
changeset: 790877:c8d87173475e
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 20:22:55 2013 +0000

description:
Mark a diagnostic-only variable

diffstat:

 sys/uvm/uvm_aobj.c |  6 +++---
 sys/uvm/uvm_bio.c  |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r d21bb4bd02a6 -r c8d87173475e sys/uvm/uvm_aobj.c
--- a/sys/uvm/uvm_aobj.c        Fri Oct 25 20:05:39 2013 +0000
+++ b/sys/uvm/uvm_aobj.c        Fri Oct 25 20:22:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_aobj.c,v 1.119 2012/09/15 06:25:47 matt Exp $      */
+/*     $NetBSD: uvm_aobj.c,v 1.120 2013/10/25 20:22:55 martin Exp $    */
 
 /*
  * Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.119 2012/09/15 06:25:47 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.120 2013/10/25 20:22:55 martin Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -407,7 +407,7 @@
 {
        static struct uvm_aobj kernel_object_store;
        static kmutex_t kernel_object_lock;
-       static int kobj_alloced = 0;
+       static int kobj_alloced __diagused = 0;
        pgoff_t pages = round_page(size) >> PAGE_SHIFT;
        struct uvm_aobj *aobj;
        int refs;
diff -r d21bb4bd02a6 -r c8d87173475e sys/uvm/uvm_bio.c
--- a/sys/uvm/uvm_bio.c Fri Oct 25 20:05:39 2013 +0000
+++ b/sys/uvm/uvm_bio.c Fri Oct 25 20:22:55 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_bio.c,v 1.79 2011/09/27 01:02:39 jym Exp $ */
+/*     $NetBSD: uvm_bio.c,v 1.80 2013/10/25 20:23:33 martin Exp $      */
 
 /*
  * Copyright (c) 1998 Chuck Silvers.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.79 2011/09/27 01:02:39 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_bio.c,v 1.80 2013/10/25 20:23:33 martin Exp $");
 
 #include "opt_uvmhist.h"
 #include "opt_ubc.h"
@@ -646,7 +646,7 @@
                mutex_enter(&uvm_pageqlock);
                for (u_int i = 0; i < npages; i++) {
                        paddr_t pa;
-                       bool rv;
+                       bool rv __diagused;
 
                        rv = pmap_extract(pmap_kernel(),
                            umapva + slot_offset + (i << PAGE_SHIFT), &pa);



Home | Main Index | Thread Index | Old Index