diff --git a/xen/include/asm-x86/guest_access.h b/xen/include/asm-x86/guest_access.h index 2b429c2..7e95da3 100644 --- a/xen/include/asm-x86/guest_access.h +++ b/xen/include/asm-x86/guest_access.h @@ -47,7 +47,7 @@ /* Cast a guest handle to the specified type of handle. */ #define guest_handle_cast(hnd, type) ({ \ - type *_x = (hnd).p; \ + type *_x = (type *)(hnd).p; \ (XEN_GUEST_HANDLE(type)) { _x }; \ })