From 7e1c1c272185bf27149ecd6fba551b4e5b193047 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sun, 18 Oct 2026 17:50:23 -0700 Subject: [PATCH] x86/xen: include the Xen types before interface/memory.h arch/x86/xen/enlighten.c includes xen/interface/memory.h for XENMEM_maximum_reservation, but memory.h uses xen_ulong_t, domid_t and GUEST_HANDLE without including where they are defined, xen/interface/xen.h. Other configurations reach those through an earlier include. The zone-tiny configuration does not, and fails to build with CONFIG_WERROR=y: include/xen/interface/physdev.h:41:5: error: unknown type name 'xen_ulong_t' Include xen/interface/xen.h first, as arch/arm/xen/enlighten.c does. Signed-off-by: Alex Zenla (cherry picked from commit c20012baca75a65885c61d75de60f4aa3410f14c) --- arch/x86/xen/enlighten.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 852610dfe704bd..651768313b421e 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include