Skip to contentSkip to conversation

mini-os: Fix 32bit compilation of fs-front.c

PATCH New Samuel Thibault 1 participant 1 message Aug 4, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mini-os: Fix 32bit compilation of fs-front.c

mini-os: Fix 32bit compilation of fs-front.c

extras/mini-os/fs-front.c +2 -2
diff -r c9b516a77927 extras/mini-os/fs-front.c
@@ -818,14 +818,14 @@ void *alloc_buffer_page(struct fs_reques
     page = (void *)alloc_page(); 
     *gref = gnttab_grant_access(domid, virt_to_mfn(page), 0); 
     req->private1 = page;
-    req->private2 = (void *)(uint64_t)(*gref);
+    req->private2 = (void *)(uintptr_t)(*gref);
 
     return page;
 }
 
 void free_buffer_page(struct fs_request *req)
 {
-    gnttab_end_access((grant_ref_t)(uint64_t)req->private2);
+    gnttab_end_access((grant_ref_t)(uintptr_t)req->private2);
     free_page(req->private1);
 }