From f4ee4af447b67135de7eb8a6615811c13ce938e2 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Wed, 23 Feb 2011 08:11:36 -0500 Subject: [PATCH] xen-gntdev: Add cast to pointer Signed-off-by: Daniel De Graaf Signed-off-by: Konrad Rzeszutek Wilk --- drivers/xen/gntdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index cdc28dc8b5d9..d43ff3072c99 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -298,8 +298,8 @@ static int __unmap_grant_pages(struct grant_map *map, int offset, int pages) if (map->notify.flags & UNMAP_NOTIFY_CLEAR_BYTE) { int pgno = (map->notify.addr >> PAGE_SHIFT); if (pgno >= offset && pgno < offset + pages && use_ptemod) { - void __user *tmp; - tmp = map->vma->vm_start + map->notify.addr; + void __user *tmp = (void __user *) + map->vma->vm_start + map->notify.addr; err = copy_to_user(tmp, &err, 1); if (err) return err; -- 2.39.5