[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231112061320.85149-1-shiqiang.deng213@gmail.com>
Date: Sun, 12 Nov 2023 14:13:20 +0800
From: "shiqiang.deng" <shiqiang.deng213@...il.com>
To: ardb@...nel.org, bp@...en8.de, kirill.shutemov@...ux.intel.com
Cc: linux-efi@...r.kernel.org, linux-kernel@...r.kernel.org,
"shiqiang.deng" <shiqiang.deng213@...il.com>
Subject: [PATCH] x86/efistub: resolve compilation errors
I found that under the conditions of
CONFIG_EFI_HANDOVER_PROTOCOL=y and CONFIG_EFI_MIXED=y,
there is a missing-prototypes error for the efi_handover_entry() function.
Let's now fix it.
Signed-off-by: shiqiang.deng <shiqiang.deng213@...il.com>
---
drivers/firmware/efi/libstub/x86-stub.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/firmware/efi/libstub/x86-stub.h b/drivers/firmware/efi/libstub/x86-stub.h
index 37c5a36b9d8c..aa020f88ce68 100644
--- a/drivers/firmware/efi/libstub/x86-stub.h
+++ b/drivers/firmware/efi/libstub/x86-stub.h
@@ -8,6 +8,11 @@ extern const u16 trampoline_ljmp_imm_offset;
void efi_adjust_memory_range_protection(unsigned long start,
unsigned long size);
+#ifdef CONFIG_EFI_HANDOVER_PROTOCOL
+void efi_handover_entry(efi_handle_t handle, efi_system_table_t *sys_table_arg,
+ struct boot_params *boot_params);
+#endif
+
#ifdef CONFIG_X86_64
efi_status_t efi_setup_5level_paging(void);
void efi_5level_switch(void);
--
2.30.0
Powered by blists - more mailing lists