Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Fix !DIAGNOSTIC build. Reported by Geoff Wing.



details:   https://anonhg.NetBSD.org/src/rev/49850fc4bbb0
branches:  trunk
changeset: 751460:49850fc4bbb0
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri Feb 05 00:55:31 2010 +0000

description:
Fix !DIAGNOSTIC build.  Reported by Geoff Wing.

diffstat:

 sys/uvm/uvm_fault.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 54f6feba098e -r 49850fc4bbb0 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c       Thu Feb 04 23:55:42 2010 +0000
+++ b/sys/uvm/uvm_fault.c       Fri Feb 05 00:55:31 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_fault.c,v 1.161 2010/02/04 05:48:26 uebayasi Exp $ */
+/*     $NetBSD: uvm_fault.c,v 1.162 2010/02/05 00:55:31 uebayasi Exp $ */
 
 /*
  *
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.161 2010/02/04 05:48:26 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.162 2010/02/05 00:55:31 uebayasi Exp $");
 
 #include "opt_uvmhist.h"
 
@@ -1210,7 +1210,9 @@
        struct uvm_faultinfo *ufi, struct uvm_faultctx *flt,
        struct vm_page **pages)
 {
+#ifdef DIAGNOSTIC
        struct vm_amap *amap = ufi->entry->aref.ar_amap;
+#endif
        struct uvm_object *uobj = ufi->entry->object.uvm_obj;
        struct vm_page *uobjpage;
 



Home | Main Index | Thread Index | Old Index