From: Wei Liu Date: Thu, 10 Aug 2017 17:22:53 +0000 (+0100) Subject: xen: remove struct domain and vcpu declarations from types.h X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~1700 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=de62402a9c2e403b049aa238b4fa4e2d618e8870;p=xen.git xen: remove struct domain and vcpu declarations from types.h They don't belong there. Removing them causes build errors in several places. Add the forward declarations in those places. Signed-off-by: Wei Liu Acked-by: Jan Beulich Reviewed-by: Julien Grall --- diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index 855ded1b07..ab5225fa6c 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -699,6 +699,7 @@ void show_registers(struct cpu_user_regs *regs); void noreturn do_unexpected_trap(const char *msg, struct cpu_user_regs *regs); +struct vcpu; void vcpu_regs_hyp_to_user(const struct vcpu *vcpu, struct vcpu_guest_core_regs *regs); void vcpu_regs_user_to_hyp(struct vcpu *vcpu, diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h index 3a1b001edb..eeac9f2ca1 100644 --- a/xen/include/asm-x86/xenoprof.h +++ b/xen/include/asm-x86/xenoprof.h @@ -22,6 +22,8 @@ #ifndef __ASM_X86_XENOPROF_H__ #define __ASM_X86_XENOPROF_H__ +struct vcpu; + #ifdef CONFIG_XENOPROF int nmi_reserve_counters(void); @@ -45,7 +47,6 @@ int xenoprof_arch_counter(XEN_GUEST_HANDLE_PARAM(void) arg); int compat_oprof_arch_counter(XEN_GUEST_HANDLE_PARAM(void) arg); int xenoprof_arch_ibs_counter(XEN_GUEST_HANDLE_PARAM(void) arg); -struct vcpu; struct cpu_user_regs; /* AMD IBS support */ diff --git a/xen/include/xen/compat.h b/xen/include/xen/compat.h index ce6245c10f..895e2ff68d 100644 --- a/xen/include/xen/compat.h +++ b/xen/include/xen/compat.h @@ -227,6 +227,7 @@ void xlat_start_info(struct start_info *, enum XLAT_start_info_console); struct vcpu_runstate_info; void xlat_vcpu_runstate_info(struct vcpu_runstate_info *); +struct domain; int switch_compat(struct domain *); #else diff --git a/xen/include/xen/types.h b/xen/include/xen/types.h index 170e993558..b1dbb8720a 100644 --- a/xen/include/xen/types.h +++ b/xen/include/xen/types.h @@ -42,9 +42,6 @@ typedef __s32 int32_t; typedef __u64 uint64_t; typedef __s64 int64_t; -struct domain; -struct vcpu; - typedef __u16 __le16; typedef __u16 __be16; typedef __u32 __le32;