]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: definition of GetNextVariableName()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 22 Mar 2020 17:28:20 +0000 (18:28 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 22 Mar 2020 17:38:02 +0000 (18:38 +0100)
'vendor' is both an input and an output parameter. So it cannot be
constant.

Fixes: 0bda81bfdc5c ("efi_loader: use const efi_guid_t * for variable services")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_api.h
include/efi_loader.h
lib/efi_loader/efi_variable.c

index 4713da2e1d000542268b71b238f19dab6fbed804..1c40ffc4f56c02cf661fd8d5757c34788416e47a 100644 (file)
@@ -272,7 +272,7 @@ struct efi_runtime_services {
                                            efi_uintn_t *data_size, void *data);
        efi_status_t (EFIAPI *get_next_variable_name)(
                        efi_uintn_t *variable_name_size,
-                       u16 *variable_name, const efi_guid_t *vendor);
+                       u16 *variable_name, efi_guid_t *vendor);
        efi_status_t (EFIAPI *set_variable)(u16 *variable_name,
                                            const efi_guid_t *vendor,
                                            u32 attributes,
index 37c3f15da1ba3b5c781085152a6b10e3c9687864..3f2792892f34c72208df7795d8e03afa93ce4c72 100644 (file)
@@ -645,7 +645,7 @@ efi_status_t EFIAPI efi_get_variable(u16 *variable_name,
                                     efi_uintn_t *data_size, void *data);
 efi_status_t EFIAPI efi_get_next_variable_name(efi_uintn_t *variable_name_size,
                                               u16 *variable_name,
-                                              const efi_guid_t *vendor);
+                                              efi_guid_t *vendor);
 efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
                                     const efi_guid_t *vendor, u32 attributes,
                                     efi_uintn_t data_size, const void *data);
index 3bec2d0d17ad2002af04d9ada8a36287cf8fc03f..fe2f26459136befd6190879b5b6416aa91610375 100644 (file)
@@ -330,7 +330,7 @@ static efi_status_t parse_uboot_variable(char *variable,
  */
 efi_status_t EFIAPI efi_get_next_variable_name(efi_uintn_t *variable_name_size,
                                               u16 *variable_name,
-                                              const efi_guid_t *vendor)
+                                              efi_guid_t *vendor)
 {
        char *native_name, *variable;
        ssize_t name_len, list_len;
@@ -598,7 +598,7 @@ efi_get_variable_runtime(u16 *variable_name, const efi_guid_t *vendor,
  */
 static efi_status_t __efi_runtime EFIAPI
 efi_get_next_variable_name_runtime(efi_uintn_t *variable_name_size,
-                                  u16 *variable_name, const efi_guid_t *vendor)
+                                  u16 *variable_name, efi_guid_t *vendor)
 {
        return EFI_UNSUPPORTED;
 }