diff mbox

[RFC,2/5] xen: include xen/types.h in domain.h

Message ID 20170303094111.12217-3-wei.liu2@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wei Liu March 3, 2017, 9:41 a.m. UTC
The public header expects a few types to be present.

This works in the code base only because types.h is included by some
other headers which happen to be placed before the inclusion of
domain.h.

Include types.h before xen.h in domain.h to fix it properly.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 xen/include/xen/domain.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jan Beulich March 3, 2017, 10:05 a.m. UTC | #1
>>> On 03.03.17 at 10:41, <wei.liu2@citrix.com> wrote:
> The public header expects a few types to be present.
> 
> This works in the code base only because types.h is included by some
> other headers which happen to be placed before the inclusion of
> domain.h.
> 
> Include types.h before xen.h in domain.h to fix it properly.
> 
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Acked-by: Jan Beulich <jbeulich@suse.com>
diff mbox

Patch

diff --git a/xen/include/xen/domain.h b/xen/include/xen/domain.h
index bce0ea1ea9..347f264047 100644
--- a/xen/include/xen/domain.h
+++ b/xen/include/xen/domain.h
@@ -2,6 +2,8 @@ 
 #ifndef __XEN_DOMAIN_H__
 #define __XEN_DOMAIN_H__
 
+#include <xen/types.h>
+
 #include <public/xen.h>
 #include <asm/domain.h>
 #include <asm/numa.h>