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 <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
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,
#ifndef __ASM_X86_XENOPROF_H__
#define __ASM_X86_XENOPROF_H__
+struct vcpu;
+
#ifdef CONFIG_XENOPROF
int nmi_reserve_counters(void);
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 */
struct vcpu_runstate_info;
void xlat_vcpu_runstate_info(struct vcpu_runstate_info *);
+struct domain;
int switch_compat(struct domain *);
#else
typedef __u64 uint64_t;
typedef __s64 int64_t;
-struct domain;
-struct vcpu;
-
typedef __u16 __le16;
typedef __u16 __be16;
typedef __u32 __le32;