]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: use const for GUIDs in the EFI_FILE_PROTOCOL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 4 Apr 2018 13:42:09 +0000 (15:42 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 5 Apr 2018 08:01:32 +0000 (10:01 +0200)
Use const efi_guid_t* when passing GUIDs.

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

index 396f45eaa8f9536dec914d375170ca280e026880..8af466a6dc7f5421c13a541a6130306e957f1c1f 100644 (file)
@@ -866,10 +866,10 @@ struct efi_file_handle {
        efi_status_t (EFIAPI *setpos)(struct efi_file_handle *file,
                        efi_uintn_t pos);
        efi_status_t (EFIAPI *getinfo)(struct efi_file_handle *file,
-                       efi_guid_t *info_type, efi_uintn_t *buffer_size,
+                       const efi_guid_t *info_type, efi_uintn_t *buffer_size,
                        void *buffer);
        efi_status_t (EFIAPI *setinfo)(struct efi_file_handle *file,
-                       efi_guid_t *info_type, efi_uintn_t buffer_size,
+                       const efi_guid_t *info_type, efi_uintn_t buffer_size,
                        void *buffer);
        efi_status_t (EFIAPI *flush)(struct efi_file_handle *file);
 };
index 0be0f8b807e2a0c4147accb0122b05ad2ddbad57..2fc77cfb87400dac8d6e70b0f9524d4449ac7936 100644 (file)
@@ -429,7 +429,7 @@ error:
 }
 
 static efi_status_t EFIAPI efi_file_getinfo(struct efi_file_handle *file,
-                                           efi_guid_t *info_type,
+                                           const efi_guid_t *info_type,
                                            efi_uintn_t *buffer_size,
                                            void *buffer)
 {
@@ -481,7 +481,7 @@ error:
 }
 
 static efi_status_t EFIAPI efi_file_setinfo(struct efi_file_handle *file,
-                                           efi_guid_t *info_type,
+                                           const efi_guid_t *info_type,
                                            efi_uintn_t buffer_size,
                                            void *buffer)
 {