From: Jimi Xenidis Subject: [PATCH][XEN] fix missing header and gcc warning Date: Sun, 13 Aug 2006 13:03:03 -0400 Message-ID: Return-path: 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 Explicaly include for map_domain_page() and fix warning. gcc says: warning: pointer of type 'void *' used in arithmetic looks like only powerpc has -Wpointer-arith turned on. Signed-off-by: Jimi Xenidis --- diff -r c87f89fc7be4 xen/common/grant_table.c --- a/xen/common/grant_table.c Sun Aug 13 12:53:19 2006 -0400 +++ b/xen/common/grant_table.c Sun Aug 13 13:02:03 2006 -0400 @@ -30,6 +30,7 @@ #include #include #include +#include #include /* @@ -902,7 +903,9 @@ __gnttab_copy( sp = map_domain_page(s_frame); dp = map_domain_page(d_frame); - memcpy(dp + op->dest.offset, sp + op->source.offset, op->len); + memcpy((void *)((ulong)dp + op->dest.offset), + (void *)((ulong)sp + op->source.offset), + op->len); unmap_domain_page(dp); unmap_domain_page(sp);