* [PATCH] xen: fix xen.h build for CONFIG_XEN_PVH=y
@ 2022-11-23 13:10 Jani Nikula
2022-11-23 14:53 ` Juergen Gross
0 siblings, 1 reply; 2+ messages in thread
From: Jani Nikula @ 2022-11-23 13:10 UTC (permalink / raw)
To: Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko, xen-devel
Cc: jani.nikula
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>
---
include/xen/xen.h | 4 ++--
1 file 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>
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xen: fix xen.h build for CONFIG_XEN_PVH=y
2022-11-23 13:10 [PATCH] xen: fix xen.h build for CONFIG_XEN_PVH=y Jani Nikula
@ 2022-11-23 14:53 ` Juergen Gross
0 siblings, 0 replies; 2+ messages in thread
From: Juergen Gross @ 2022-11-23 14:53 UTC (permalink / raw)
To: Jani Nikula, Stefano Stabellini, Oleksandr Tyshchenko, xen-devel
[-- Attachment #1.1.1: Type: text/plain, Size: 263 bytes --]
On 23.11.22 14:10, Jani Nikula wrote:
> 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>
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-23 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 13:10 [PATCH] xen: fix xen.h build for CONFIG_XEN_PVH=y Jani Nikula
2022-11-23 14:53 ` Juergen Gross
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.