mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master 1/5] efi: payload: drop unreferenced efi_do_execute_image()
@ 2025-11-07 14:17 Ahmad Fatoum
  2025-11-07 14:17 ` [PATCH master 2/5] filetype: introduce separate filetype_x86_efi_linux_image Ahmad Fatoum
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2025-11-07 14:17 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

This function exists in efi/payload/bootm.c as efi_execute(), where it's
actually used, so drop this unused copy.

Fixes: 7b0cedb9ddb4 ("efi: payload: split image handling from legacy
                      handover boot and add linux x86 image filetype")
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 efi/payload/handover.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/efi/payload/handover.c b/efi/payload/handover.c
index 82f4cb4f5286..658f3600d6a6 100644
--- a/efi/payload/handover.c
+++ b/efi/payload/handover.c
@@ -33,19 +33,6 @@
 #include "image.h"
 #include "setup_header.h"
 
-static int efi_do_execute_image(enum filetype filetype, const char *file)
-{
-	efi_handle_t handle;
-	struct efi_loaded_image *loaded_image;
-	int ret;
-
-	ret = efi_load_image(file, &loaded_image, &handle);
-	if (ret)
-		return ret;
-
-	return efi_execute_image(handle, loaded_image, filetype);
-}
-
 typedef void(*handover_fn)(void *image, struct efi_system_table *table,
 			   struct x86_setup_header *header);
 
-- 
2.47.3




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-11-10  8:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-07 14:17 [PATCH master 1/5] efi: payload: drop unreferenced efi_do_execute_image() Ahmad Fatoum
2025-11-07 14:17 ` [PATCH master 2/5] filetype: introduce separate filetype_x86_efi_linux_image Ahmad Fatoum
2025-11-07 14:17 ` [PATCH master 3/5] efi: payload: handover: fix filetype match Ahmad Fatoum
2025-11-07 14:17 ` [PATCH master 4/5] efi: payload: reinstate error message when booting non-EFI stubbed kernel Ahmad Fatoum
2025-11-07 14:17 ` [PATCH master 5/5] efi: payload: align kernel boot status messages Ahmad Fatoum
2025-11-10  8:20 ` [PATCH master 1/5] efi: payload: drop unreferenced efi_do_execute_image() Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox