]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
efi_loader: make efi_add_memory_map_pg() static
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 16 Feb 2025 11:12:41 +0000 (12:12 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Feb 2025 10:09:33 +0000 (11:09 +0100)
The function is only used in the efi_memory.c module.

Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_loader.h
lib/efi_loader/efi_memory.c

index db3d20fd75389d0ab49c1da64f5e3aff0a60fbc1..1d75d97ebbcfaebf922b0e21c2b682a5eb3e5547 100644 (file)
@@ -852,21 +852,6 @@ efi_status_t efi_get_memory_map(efi_uintn_t *memory_map_size,
 /* Adds a range into the EFI memory map */
 efi_status_t efi_add_memory_map(u64 start, u64 size, int memory_type);
 
-/**
- * efi_add_memory_map_pg() - add pages to the memory map
- *
- * @start:                     start address, must be a multiple of
- *                             EFI_PAGE_SIZE
- * @pages:                     number of pages to add
- * @memory_type:               type of memory added
- * @overlap_conventional:      region may only overlap free(conventional)
- *                             memory
- * Return:                     status code
- */
-efi_status_t efi_add_memory_map_pg(u64 start, u64 pages,
-                                  int memory_type,
-                                  bool overlap_conventional);
-
 /* Called by board init to initialize the EFI drivers */
 efi_status_t efi_driver_init(void);
 /* Called when a block device is added */
index 11d092dc289f4dddc3100fa6b7665a2231255378..6d00b1862505adf1b780a09c3ed8785ad201430a 100644 (file)
@@ -268,6 +268,7 @@ static s64 efi_mem_carve_out(struct efi_mem_list *map,
  *                             memory
  * Return:                     status code
  */
+static
 efi_status_t efi_add_memory_map_pg(u64 start, u64 pages,
                                   int memory_type,
                                   bool overlap_conventional)