projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef8ae38
)
xen: fix xen.h build for CONFIG_XEN_PVH=y
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 23 Nov 2022 13:10:56 +0000
(15:10 +0200)
committer
Juergen Gross
<jgross@suse.com>
Mon, 5 Dec 2022 11:59:49 +0000
(12:59 +0100)
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>
include/xen/xen.h
patch
|
blob
|
history
diff --git
a/include/xen/xen.h
b/include/xen/xen.h
index a99bab8175234eb9117dddcd36702083d0896c3c..7adf59837c258eab19ca8988194ebe5cc10e80fd 100644
(file)
--- 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>