Source-Changes-D archive

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

Re: CVS commit: src/sys/uvm (uvm_fault.c)



On Thursday 2010-02-04 05:48 +0000, Masao Uebayashi output:
:Module Name:   src
:Committed By:  uebayasi
:Date:          Thu Feb  4 05:48:26 UTC 2010
:Modified Files:
:       src/sys/uvm: uvm_fault.c

One of the recent changes added a variable only used in KASSERT()s
thus will need a check for non-DIAGNOSTIC builds.

Regards,
Geoff

Index: sys/uvm/uvm_fault.c
===================================================================
RCS file: /cvsroot/src/sys/uvm/uvm_fault.c,v
retrieving revision 1.161
diff -u -r1.161 uvm_fault.c
--- sys/uvm/uvm_fault.c 4 Feb 2010 05:48:26 -0000       1.161
+++ sys/uvm/uvm_fault.c 5 Feb 2010 00:26:22 -0000
@@ -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