summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2022-11-23 14:10:56 +0100
committerJuergen Gross <jgross@suse.com>2022-12-05 12:59:49 +0100
commit11987fbeaae78f2fc01ce9eb3f5a0eec382b4282 (patch)
tree26729ce8678e3e8aa7e736f93aba5c4f68b4a699 /include/xen
parentxen/virtio: Handle PCI devices which Host controller is described in DT (diff)
downloadlinux-11987fbeaae78f2fc01ce9eb3f5a0eec382b4282.tar.xz
linux-11987fbeaae78f2fc01ce9eb3f5a0eec382b4282.zip
xen: fix xen.h build for CONFIG_XEN_PVH=y
For CONFIG_XEN_PVH=y, xen.h uses bool before the type is known. Include <linux/types.h> earlier. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Juergen Gross <jgross@suse.com> Link: https://lore.kernel.org/r/20221123131057.3864183-1-jani.nikula@intel.com Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/xen.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/xen/xen.h b/include/xen/xen.h
index a99bab817523..7adf59837c25 100644
--- a/include/xen/xen.h
+++ b/include/xen/xen.h
@@ -2,6 +2,8 @@
#ifndef _XEN_XEN_H
#define _XEN_XEN_H
+#include <linux/types.h>
+
enum xen_domain_type {
XEN_NATIVE, /* running on bare hardware */
XEN_PV_DOMAIN, /* running in a PV domain */
@@ -25,8 +27,6 @@ extern bool xen_pvh;
#define xen_hvm_domain() (xen_domain_type == XEN_HVM_DOMAIN)
#define xen_pvh_domain() (xen_pvh)
-#include <linux/types.h>
-
extern uint32_t xen_start_flags;
#include <xen/interface/hvm/start_info.h>