[PATCH 4/5] efi: loader: Make efi_mem static

Bin Meng bmeng at tinylab.org
Wed Apr 5 14:15:18 CEST 2023


efi_mem is only referenced in efi_memory.c

Signed-off-by: Bin Meng <bmeng at tinylab.org>
---

 lib/efi_loader/efi_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index b7bee98f79..219b520a0d 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -33,7 +33,7 @@ struct efi_mem_list {
 #define EFI_CARVE_OVERLAPS_NONRAM	-3
 
 /* This list contains all memory map items */
-LIST_HEAD(efi_mem);
+static LIST_HEAD(efi_mem);
 
 #ifdef CONFIG_EFI_LOADER_BOUNCE_BUFFER
 void *efi_bounce_buffer;
-- 
2.34.1



More information about the U-Boot mailing list