From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: [PATCH] mini-os: Fix 32bit compilation of fs-front.c Date: Mon, 4 Aug 2008 15:07:18 +0100 Message-ID: <20080804140718.GR4470@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org mini-os: Fix 32bit compilation of fs-front.c Reported-by: Trolle Selander Signed-off-by: Samuel Thibault diff -r c9b516a77927 extras/mini-os/fs-front.c --- a/extras/mini-os/fs-front.c Mon Aug 04 11:29:45 2008 +0100 +++ b/extras/mini-os/fs-front.c Mon Aug 04 15:06:38 2008 +0100 @@ -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); }