From 760211bf262823c2c92f910daf90d56d0d1503f5 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Tue, 28 Jul 2015 10:29:51 +0200 Subject: [PATCH] eal/bsd: fix build The BSD function for contigmem init and attach must now use the same name as Linux (hugepage prefix) to avoid code duplication. The attach function was renamed but the init function was forgotten. Fixes: d12b6da14bfa ("eal: deduplicate memory initialization") Signed-off-by: Thomas Monjalon --- lib/librte_eal/bsdapp/eal/eal_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_memory.c b/lib/librte_eal/bsdapp/eal/eal_memory.c index 937e8db574..3614da8db8 100644 --- a/lib/librte_eal/bsdapp/eal/eal_memory.c +++ b/lib/librte_eal/bsdapp/eal/eal_memory.c @@ -60,7 +60,7 @@ rte_mem_virt2phy(const void *virtaddr) } int -rte_eal_contigmem_init(void) +rte_eal_hugepage_init(void) { struct rte_mem_config *mcfg; uint64_t total_mem = 0; -- 2.20.1