mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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 <wei.liu2@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Julien Grall <julien.grall@arm.com>
This commit is contained in:
1 parent
b24731b1b4
commit
de62402a9c
4 files changed
+4
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||