Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Fix build without DIAGNOSTIC.
details: https://anonhg.NetBSD.org/src/rev/df7a44e306d8
branches: trunk
changeset: 751350:df7a44e306d8
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Mon Feb 01 11:58:39 2010 +0000
description:
Fix build without DIAGNOSTIC.
diffstat:
sys/uvm/uvm_fault.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 0495cc11b726 -r df7a44e306d8 sys/uvm/uvm_fault.c
--- a/sys/uvm/uvm_fault.c Mon Feb 01 10:22:40 2010 +0000
+++ b/sys/uvm/uvm_fault.c Mon Feb 01 11:58:39 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_fault.c,v 1.146 2010/02/01 10:22:40 uebayasi Exp $ */
+/* $NetBSD: uvm_fault.c,v 1.147 2010/02/01 11:58:39 uebayasi Exp $ */
/*
*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.146 2010/02/01 10:22:40 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_fault.c,v 1.147 2010/02/01 11:58:39 uebayasi Exp $");
#include "opt_uvmhist.h"
@@ -1277,9 +1277,11 @@
struct uvm_faultinfo *ufi, struct uvm_faultctx *flt,
struct vm_page **pages)
{
+#ifdef DIAGNOSTIC
struct vm_amap *amap = ufi->entry->aref.ar_amap;
struct uvm_object *uobj = ufi->entry->object.uvm_obj;
struct vm_page *uobjpage = pages[flt->centeridx];
+#endif
/* locked: maps(read), amap(if there), uobj(if !null), uobjpage(if !null) */
KASSERT(amap == NULL || mutex_owned(&amap->am_l));
Home |
Main Index |
Thread Index |
Old Index