Current-Users archive

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

Re: current-amd64 build failure in src/sys/uvm/uvm_fault.c

Kurt Schreiner wrote:
On Thu, Feb 04, 2010 at 10:29:32AM -0800, Hisashi T Fujinaka wrote:
On Thu, 4 Feb 2010, Aioanei Rares wrote:

Hisashi T Fujinaka wrote:
#   compile  GENERIC/uvm_fault.o
/usr/src/obj.amd64/tooldir.NetBSD-5.99.24-amd64/bin/x86_64--netbsd-gcc -mcmodel=kernel -mno-red-zone -ffreestanding [...]
/usr/src/sys/uvm/uvm_fault.c: In function 'uvm_fault_lower_generic':
/usr/src/sys/uvm/uvm_fault.c:1213: warning: unused variable 'amap'

How recent is your src tree? I encountered this error about a week ago, but a subsequent update solved the problem.
This morning. I compiled fine yesterday.
This little hack clams gcc down and makes it compile again for me:

-1027: (cd /u/NetBSD/src && cvs diff -u sys/uvm/uvm_fault.c)
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 4 Feb 2010 18:51:46 -0000
@@ -1210,7 +1210,7 @@
        struct uvm_faultinfo *ufi, struct uvm_faultctx *flt,
        struct vm_page **pages)
-       struct vm_amap *amap = ufi->entry->aref.ar_amap;
+       struct vm_amap *amap; amap = ufi->entry->aref.ar_amap;
        struct uvm_object *uobj = ufi->entry->object.uvm_obj;
        struct vm_page *uobjpage;


You were right, it works.

Home | Main Index | Thread Index | Old Index