From: Juergen Gross Date: Mon, 11 Jul 2022 09:59:16 +0000 (+0200) Subject: xen: include compat/platform.h from hypercall.h X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~473 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e1664942b296e5a7bd82153bbead65c716779f35;p=xen.git xen: include compat/platform.h from hypercall.h The definition of compat_platform_op_t is in compat/platform.h already, so include that file from hypercall.h instead of repeating the typedef. This allows to remove the related include statement from arch/x86/x86_64/platform_hypercall.c. Signed-off-by: Juergen Gross Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/x86_64/platform_hypercall.c b/xen/arch/x86/x86_64/platform_hypercall.c index 966fd27b5f..5bf6b958d2 100644 --- a/xen/arch/x86/x86_64/platform_hypercall.c +++ b/xen/arch/x86/x86_64/platform_hypercall.c @@ -5,7 +5,6 @@ EMIT_FILE; #include -#include #include #define xen_platform_op compat_platform_op diff --git a/xen/include/xen/hypercall.h b/xen/include/xen/hypercall.h index a032ba2b4a..ca8ee22717 100644 --- a/xen/include/xen/hypercall.h +++ b/xen/include/xen/hypercall.h @@ -15,6 +15,9 @@ #include #include #include +#ifdef CONFIG_COMPAT +#include +#endif #include #include @@ -206,7 +209,6 @@ extern int cf_check compat_multicall( int compat_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg); -typedef struct compat_platform_op compat_platform_op_t; DEFINE_XEN_GUEST_HANDLE(compat_platform_op_t); int compat_platform_op(XEN_GUEST_HANDLE_PARAM(compat_platform_op_t) u_xenpf_op);