mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
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 <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
This commit is contained in:
1 parent
ef8ae384b4
commit
11987fbeaa
1 file changed
+2
-2
+2
-2
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user