xen: remove struct domain and vcpu declarations from types.h
PATCH 1/1 xen: remove struct domain and vcpu declarations from types.h
They don't belong there. Removing them causes build error in compat.h. Add a struct domain declaration there because including sched.h doesn't work.
---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>
--- xen/include/xen/compat.h | 1 + xen/include/xen/types.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
xen/include/xen/compat.h +1 -0
@@ -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
xen/include/xen/types.h +0 -3
@@ -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 ;
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 10.08.17 at 15:24, <[email protected]> wrote:
They don't belong there. Removing them causes build error in
compat.h. Add a struct domain declaration there because includingsched.hdoesn't work.Signed-off-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Wei Liu
They don't belong there. Removing them causes build error in
compat.h. Add a struct domain declaration there because includingsched.hdoesn't work.Signed-off-by Wei Liu <[email protected]>
Unfortunately this version is broken on ARM. I will send v2 later.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel