]> Zhao Yanbai Git Server - minix.git/commitdiff
vm: add missing USE() macros in utility.c.
authorBen Gras <ben@minix3.org>
Mon, 19 Jul 2010 18:19:38 +0000 (18:19 +0000)
committerBen Gras <ben@minix3.org>
Mon, 19 Jul 2010 18:19:38 +0000 (18:19 +0000)
servers/vm/utility.c

index 54c13708396e92dd5f213a32a8dbd90550290495..339a5599f55495518d78ac4c8493e41afa9e0ba8 100644 (file)
@@ -29,6 +29,7 @@
 #include "glo.h"
 #include "util.h"
 #include "region.h"
+#include "sanitycheck.h"
 
 #include <machine/archtypes.h>
 #include "kernel/const.h"
@@ -279,10 +280,10 @@ PUBLIC int swap_proc(endpoint_t src_e, endpoint_t dst_e)
 
        /* Preserve vir_region's parents. */
        for(vr = src_vmp->vm_regions; vr; vr = vr->next) {
-               vr->parent = src_vmp;
+               USE(vr, vr->parent = src_vmp;);
        }
        for(vr = dst_vmp->vm_regions; vr; vr = vr->next) {
-               vr->parent = dst_vmp;
+               USE(vr, vr->parent = dst_vmp;);
        }
 
        /* Adjust page tables. */