efi_loader: remove asm/setjmp.h from efi_api.h
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 20 Jul 2021 05:57:02 +0000 (14:57 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 24 Jul 2021 08:49:51 +0000 (10:49 +0200)
In the commit c982874e930d ("efi_loader: refactor
efi_setup_loaded_image()"), setjmp-related definitions were moved to
efi_loaded_image_obj in efi_loader.h. So setjmp.h is no longer
refererenced in efi_api.h.

This also fixes some error when efi_api.h will be included in
mkeficapsule.c.

Fixes: c982874e930d ("efi_loader: refactor efi_setup_loaded_image()")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_api.h
include/efi_loader.h
lib/efi_loader/efi_boottime.c

index 18a1adf023901fcebbd5a0585799263c15a80654..e854a8b3a11203bee555c9031cb16a46b8bbabbe 100644 (file)
 #include <charset.h>
 #include <pe.h>
 
-#ifdef CONFIG_EFI_LOADER
-#include <asm/setjmp.h>
-#endif
-
 /* UEFI spec version 2.8 */
 #define EFI_SPECIFICATION_VERSION (2 << 16 | 80)
 
index b81180cfda8bd7a42c52b7d4ea563712ea2c45f5..e6d41cfb359fa49a179dd390fe69c389743d09e4 100644 (file)
@@ -17,6 +17,7 @@
 #include <pe.h>
 
 struct blk_desc;
+struct jmp_buf_data;
 
 static inline int guidcmp(const void *g1, const void *g2)
 {
index f6d5ba05e34ad288a7dc98750320da8ca82ff84f..0b98e918137348ec6a9c48e71aff64c13a0f6430 100644 (file)
@@ -20,6 +20,7 @@
 #include <usb.h>
 #include <watchdog.h>
 #include <asm/global_data.h>
+#include <asm/setjmp.h>
 #include <linux/libfdt_env.h>
 
 DECLARE_GLOBAL_DATA_PTR;