From: Heinrich Schuchardt Date: Sat, 3 Mar 2018 14:29:00 +0000 (+0100) Subject: efi_loader: efi_get_time_init should return status code X-Git-Tag: v2018.05-rc2~45^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14ad49d100a0ba4abafedf8ca6459b699c9d0fa1;p=platform%2Fkernel%2Fu-boot.git efi_loader: efi_get_time_init should return status code All EFI initialization functions should return a status code. Signed-off-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- diff --git a/include/efi_loader.h b/include/efi_loader.h index 3d36943..b633518 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -365,7 +365,7 @@ efi_status_t efi_reset_system_init(void); efi_status_t __efi_runtime EFIAPI efi_get_time( struct efi_time *time, struct efi_time_cap *capabilities); -void efi_get_time_init(void); +efi_status_t efi_get_time_init(void); #ifdef CONFIG_CMD_BOOTEFI_SELFTEST /* diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 85f8571..c59d161 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -147,8 +147,9 @@ efi_status_t __weak __efi_runtime EFIAPI efi_get_time( return EFI_DEVICE_ERROR; } -void __weak efi_get_time_init(void) +efi_status_t __weak efi_get_time_init(void) { + return EFI_SUCCESS; } struct efi_runtime_detach_list_struct {