From ce96ba3fae5c078c4ad3e88e89a80efda244eb8c Mon Sep 17 00:00:00 2001 From: "Gao, Shiqing" Date: Thu, 15 Aug 2024 10:29:06 +0800 Subject: [PATCH] hv: multiboot: fix compilation error for module test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix below compilation error when building the module test for multiboot_priv.h. ./boot/multiboot/multiboot_priv.h: In function ‘boot_from_multiboot’: ./boot/multiboot/multiboot_priv.h:33:27: error: ‘MULTIBOOT_INFO_MAGIC’ undeclared (first use in this function) 33 | return ((magic == MULTIBOOT_INFO_MAGIC) && (info != 0U)); Tracked-On: #861 Signed-off-by: Gao, Shiqing --- hypervisor/boot/multiboot/multiboot_priv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypervisor/boot/multiboot/multiboot_priv.h b/hypervisor/boot/multiboot/multiboot_priv.h index b05a4b481..ca683ede0 100644 --- a/hypervisor/boot/multiboot/multiboot_priv.h +++ b/hypervisor/boot/multiboot/multiboot_priv.h @@ -7,6 +7,8 @@ #ifndef MULTIBOOT_PRIV_H #define MULTIBOOT_PRIV_H +#include + #ifdef CONFIG_MULTIBOOT2 /* * @post boot_regs[1] stores the address pointer that point to a valid multiboot2 info