Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm __diagused police



details:   https://anonhg.NetBSD.org/src/rev/685ad51547d2
branches:  trunk
changeset: 822424:685ad51547d2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Mar 19 23:30:39 2017 +0000

description:
__diagused police

diffstat:

 sys/uvm/uvm_physseg.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r d6e997bef987 -r 685ad51547d2 sys/uvm/uvm_physseg.c
--- a/sys/uvm/uvm_physseg.c     Sun Mar 19 22:48:00 2017 +0000
+++ b/sys/uvm/uvm_physseg.c     Sun Mar 19 23:30:39 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_physseg.c,v 1.7 2017/02/02 21:22:08 uwe Exp $ */
+/* $NetBSD: uvm_physseg.c,v 1.8 2017/03/19 23:30:39 riastradh Exp $ */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -1226,7 +1226,7 @@
 uvm_physseg_unplug(paddr_t pfn, size_t pages)
 {
        uvm_physseg_t upm;
-       paddr_t off = 0, start, end;
+       paddr_t off = 0, start __diagused, end;
        struct uvm_physseg *seg;
 
        upm = uvm_physseg_find(pfn, &off);
@@ -1246,9 +1246,6 @@
                return false;
        }
 
-#ifndef DIAGNOSTIC
-       (void) start;
-#endif
        KASSERT(pfn == start + off); /* sanity */
 
        if (__predict_true(uvm.page_init_done == true)) {



Home | Main Index | Thread Index | Old Index