]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lmb: staticise lmb_add_memory()
authorSughosh Ganu <sughosh.ganu@linaro.org>
Tue, 17 Jun 2025 10:43:42 +0000 (16:13 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 25 Jun 2025 15:50:37 +0000 (09:50 -0600)
lmb_add_memory() is only called from the lmb module. Mark the function
as static.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/lmb.h
lib/lmb.c

index 34dbc25759dd087367ea800c0420c1bae2ee0fc9..aead799d555ccccdcc681bc13fd144b3b27d600d 100644 (file)
@@ -124,14 +124,6 @@ int lmb_alloc_mem(enum lmb_mem_type type, u64 align, phys_addr_t *addr,
  */
 int lmb_init(void);
 
-/**
- * lmb_add_memory() - Add memory range for LMB allocations.
- *
- * Add the entire available memory range to the pool of memory that
- * can be used by the LMB module for allocations.
- */
-void lmb_add_memory(void);
-
 long lmb_add(phys_addr_t base, phys_size_t size);
 
 phys_size_t lmb_get_free_size(phys_addr_t addr);
index a30ae64f8cdc237d49f45324881d1708a3ede1a6..3265fad317d87fb382a70af06e2bcb6b532ce7ca 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -605,7 +605,7 @@ static __maybe_unused void lmb_reserve_common_spl(void)
        }
 }
 
-void lmb_add_memory(void)
+static void lmb_add_memory(void)
 {
        int i;
        phys_addr_t bank_end;