|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen: remove struct domain and vcpu declarations from types.h
commit de62402a9c2e403b049aa238b4fa4e2d618e8870
Author: Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Thu Aug 10 18:22:53 2017 +0100
Commit: Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Aug 11 12:25:16 2017 +0100
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@xxxxxxxxxx>
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
Reviewed-by: Julien Grall <julien.grall@xxxxxxx>
---
xen/include/asm-arm/processor.h | 1 +
xen/include/asm-x86/xenoprof.h | 3 ++-
xen/include/xen/compat.h | 1 +
xen/include/xen/types.h | 3 ---
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h
index 855ded1..ab5225f 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 3a1b001..eeac9f2 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 ce6245c..895e2ff 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 170e993..b1dbb87 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;
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |