Below the conversion for uvm_io.c. The sz variable is already a size_t.
Index: uvm/uvm_io.c
===================================================================
RCS file: /cvs/src/sys/uvm/uvm_io.c,v
retrieving revision 1.25
diff -u -p -u -r1.25 uvm_io.c
--- uvm/uvm_io.c 14 Mar 2015 03:38:53 -0000 1.25
+++ uvm/uvm_io.c 9 Jan 2016 09:50:42 -0000
@@ -109,7 +109,7 @@ uvm_io(vm_map_t map, struct uio *uio, in
sz = chunksz - pageoffset;
if (sz > togo)
sz = togo;
- error = uiomovei((caddr_t) (kva + pageoffset), sz, uio);
+ error = uiomove((caddr_t) (kva + pageoffset), sz, uio);
togo -= sz;
baseva += chunksz;
cheers,
natano