]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: efi_get_time_init should return status code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Mar 2018 14:29:00 +0000 (15:29 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:00:06 +0000 (11:00 +0200)
All EFI initialization functions should return a status code.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h
lib/efi_loader/efi_runtime.c

index 3d369436a1948377b377309e802e9198d6930085..b6335182eda3beaaf8871ad3c69f517a366efc30 100644 (file)
@@ -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
 /*
index 85f85711ddc4c2b09db0fcae2449a6080adf8f1c..c59d161c8fe5eb6e981e954f46cb2ce118cf84b9 100644 (file)
@@ -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 {