diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-02-10 08:23:24 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-02-10 13:05:40 +0100 |
commit | 60e3fedc64532c66f5bcd7c5c3d95e51ab2783e7 (patch) | |
tree | 03efcb500d7945f84fda64b914e527a4495a0e50 /include/efi_api.h | |
parent | 4db17a4b12524d0ec2dc30913dbbf44f968ce8e0 (diff) | |
download | u-boot-60e3fedc64532c66f5bcd7c5c3d95e51ab2783e7.tar.gz u-boot-60e3fedc64532c66f5bcd7c5c3d95e51ab2783e7.tar.bz2 u-boot-60e3fedc64532c66f5bcd7c5c3d95e51ab2783e7.zip |
efi_loader: add definition for efi_main()
U-Boot provides multiple EFI applications. The entry point is called
efi_main(). Provide a definition for this function. This avoids
build warnings like
lib/efi_loader/initrddump.c:468:21: warning:
no previous prototype for ‘efi_main’ [-Wmissing-prototypes]
468 | efi_status_t EFIAPI efi_main(efi_handle_t image_handle,
| ^~~~~~~~
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r-- | include/efi_api.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/efi_api.h b/include/efi_api.h index e1cdaf5247..2d18d25a71 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -513,6 +513,16 @@ struct efi_system_table { struct efi_configuration_table *tables; }; +/** + * efi_main() - entry point of EFI applications + * + * @image_handle: handle with the Loaded Image Protocol + * @systab: pointer to the system table + * Return: status code + */ +efi_status_t EFIAPI efi_main(efi_handle_t image_handle, + struct efi_system_table *systab); + #define EFI_LOADED_IMAGE_PROTOCOL_GUID \ EFI_GUID(0x5b1b31a1, 0x9562, 0x11d2, \ 0x8e, 0x3f, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b) |