summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/lmb.h8
-rw-r--r--lib/lmb.c2
2 files changed, 1 insertions, 9 deletions
diff --git a/include/lmb.h b/include/lmb.h
index 34dbc25759d..aead799d555 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -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);
diff --git a/lib/lmb.c b/lib/lmb.c
index a30ae64f8cd..3265fad317d 100644
--- 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;