xen/arm: Fixing clear_guest_offset macro
authorJaeyong Yoo <jaeyong.yoo@samsung.com>
Fri, 4 Oct 2013 04:44:02 +0000 (13:44 +0900)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 10 Oct 2013 11:50:31 +0000 (12:50 +0100)
Fix the the broken macro 'clear_guest_offset' in arm.

Signed-off-by: Jaeyong Yoo <jaeyong.yoo@samsung.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/guest_access.h

index 34aae14f48e31ce53108eed80eefbf6d6d622bdd..8ff088f39ae9c06d0bbed388bf87f97e2f6e31d9 100644 (file)
@@ -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);             \
 })
 
 /*