[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] public: xen: Define missing guest handle for int32_t
Commit afab29d0882f ("public: s/int/int32_t") replaced int with int32_t in XEN_GUEST_HANDLE() in memory.h but there is no guest handle defined for it. This results in a build failure. Example on Arm: ./include/public/arch-arm.h:205:41: error: unknown type name ‘__guest_handle_64_int32_t’ 205 | #define __XEN_GUEST_HANDLE(name) __guest_handle_64_ ## name | ^~~~~~~~~~~~~~~~~~ ./include/public/arch-arm.h:206:41: note: in expansion of macro ‘__XEN_GUEST_HANDLE’ 206 | #define XEN_GUEST_HANDLE(name) __XEN_GUEST_HANDLE(name) | ^~~~~~~~~~~~~~~~~~ ./include/public/memory.h:277:5: note: in expansion of macro ‘XEN_GUEST_HANDLE’ 277 | XEN_GUEST_HANDLE(int32_t) errs; Fix it. Also, drop guest handle definition for int given no further use. Fixes: afab29d0882f ("public: s/int/int32_t") Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx> --- xen/include/public/xen.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h index b47d48d0e2d6..8fd0cec880d5 100644 --- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -28,7 +28,6 @@ /* Guest handles for primitive C types. */ DEFINE_XEN_GUEST_HANDLE(char); __DEFINE_XEN_GUEST_HANDLE(uchar, unsigned char); -DEFINE_XEN_GUEST_HANDLE(int); __DEFINE_XEN_GUEST_HANDLE(uint, unsigned int); #if __XEN_INTERFACE_VERSION__ < 0x00040300 DEFINE_XEN_GUEST_HANDLE(long); @@ -36,6 +35,7 @@ __DEFINE_XEN_GUEST_HANDLE(ulong, unsigned long); #endif DEFINE_XEN_GUEST_HANDLE(void); +DEFINE_XEN_GUEST_HANDLE(int32_t); DEFINE_XEN_GUEST_HANDLE(uint64_t); DEFINE_XEN_GUEST_HANDLE(xen_pfn_t); DEFINE_XEN_GUEST_HANDLE(xen_ulong_t); -- 2.25.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |