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 <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Juergen Gross authored and Jan Beulich committed 2022-07-11 11:59:16 +02:00
1 parent 7e21b25059
commit e1664942b2
2 files changed
+3 -2

No files matched your search

-1
View File
@@ -5,7 +5,6 @@
EMIT_FILE;
#include <xen/lib.h>
#include <compat/platform.h>
#include <xen/hypercall.h>
#define xen_platform_op compat_platform_op
+3 -1
View File
@@ -15,6 +15,9 @@
#include <public/version.h>
#include <public/pmu.h>
#include <public/hvm/dm_op.h>
#ifdef CONFIG_COMPAT
#include <compat/platform.h>
#endif
#include <asm/hypercall.h>
#include <xsm/xsm.h>
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.