]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi: selftest: Make load_file() and load_file2() static
authorBin Meng <bmeng@tinylab.org>
Wed, 5 Apr 2023 12:15:16 +0000 (20:15 +0800)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 8 Apr 2023 05:46:44 +0000 (07:46 +0200)
load_file() and load_file2() are only referenced in
efi_selftest_load_file.c

Signed-off-by: Bin Meng <bmeng@tinylab.org>
lib/efi_selftest/efi_selftest_load_file.c

index 8784a7617212a5cbb19f88965f207196bd849e8c..14df761172799b405ff18561f72b519df14f8dca 100644 (file)
@@ -206,11 +206,11 @@ static efi_status_t decompress(u8 **image)
  * @buffer_size:       (required) buffer size
  * @buffer:            buffer to which the file is to be loaded
  */
-efi_status_t EFIAPI load_file(struct efi_load_file_protocol *this,
-                             struct efi_device_path *file_path,
-                             bool boot_policy,
-                             efi_uintn_t *buffer_size,
-                             void *buffer)
+static efi_status_t EFIAPI load_file(struct efi_load_file_protocol *this,
+                                    struct efi_device_path *file_path,
+                                    bool boot_policy,
+                                    efi_uintn_t *buffer_size,
+                                    void *buffer)
 {
        ++load_file_call_count;
        if (memcmp(file_path, dp_lf_file_remainder,
@@ -243,11 +243,11 @@ efi_status_t EFIAPI load_file(struct efi_load_file_protocol *this,
  * @buffer_size:       (required) buffer size
  * @buffer:            buffer to which the file is to be loaded
  */
-efi_status_t EFIAPI load_file2(struct efi_load_file_protocol *this,
-                              struct efi_device_path *file_path,
-                              bool boot_policy,
-                              efi_uintn_t *buffer_size,
-                              void *buffer)
+static efi_status_t EFIAPI load_file2(struct efi_load_file_protocol *this,
+                                     struct efi_device_path *file_path,
+                                     bool boot_policy,
+                                     efi_uintn_t *buffer_size,
+                                     void *buffer)
 {
        ++load_file2_call_count;
        if (memcmp(file_path, dp_lf2_file_remainder,