Skip to contentSkip to conversation

xen: remove struct domain and vcpu declarations from types.h

PATCH Superseded Wei Liu 2 participants 3 messages Aug 10, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

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
index ce6245c10f..895e2ff68d 100644
@@ -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
index 170e993558..b1dbb8720a 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 including sched.h doesn't work.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel