Module Name: src
Committed By: riastradh
Date: Sun Mar 19 23:30:39 UTC 2017
Modified Files:
src/sys/uvm: uvm_physseg.c
Log Message:
__diagused police
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/uvm/uvm_physseg.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_physseg.c
diff -u src/sys/uvm/uvm_physseg.c:1.7 src/sys/uvm/uvm_physseg.c:1.8
--- src/sys/uvm/uvm_physseg.c:1.7 Thu Feb 2 21:22:08 2017
+++ src/sys/uvm/uvm_physseg.c Sun Mar 19 23:30:39 2017
@@ -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 @@ bool
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 @@ uvm_physseg_unplug(paddr_t pfn, size_t p
return false;
}
-#ifndef DIAGNOSTIC
- (void) start;
-#endif
KASSERT(pfn == start + off); /* sanity */
if (__predict_true(uvm.page_init_done == true)) {