From: Jaeyong Yoo Date: Fri, 4 Oct 2013 04:44:02 +0000 (+0900) Subject: xen/arm: Fixing clear_guest_offset macro X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6187 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e9ee35826e46e4f9a40f9fdafcc609016cb2a23b;p=xen.git xen/arm: Fixing clear_guest_offset macro Fix the the broken macro 'clear_guest_offset' in arm. Signed-off-by: Jaeyong Yoo Reviewed-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/include/asm-arm/guest_access.h b/xen/include/asm-arm/guest_access.h index 34aae14f48..8ff088f39a 100644 --- a/xen/include/asm-arm/guest_access.h +++ b/xen/include/asm-arm/guest_access.h @@ -77,8 +77,9 @@ unsigned long raw_clear_guest(void *to, unsigned len); * Clear an array of objects in guest context via a guest handle, * specifying an offset into the guest array. */ -#define clear_guest_offset(hnd, off, ptr, nr) ({ \ - raw_clear_guest(_d+(off), nr); \ +#define clear_guest_offset(hnd, off, nr) ({ \ + void *_d = (hnd).p; \ + raw_clear_guest(_d+(off), nr); \ }) /*