Skip to contentSkip to conversation

mem: fix typo in local function name

PATCH In review Thomas Monjalon 2 participants 4 messages May 1, 2018 – May 13, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mem: fix typo in local function name

Fixes 582bed1e1d1d ("mem: support mapping hugepages at runtime")
---
 lib/librte_eal/linuxapp/eal/eal_memalloc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_eal/linuxapp/eal/eal_memalloc.c +2 -2
index 360d8f73c..ace2bcf3e 100644
@@ -143,7 +143,7 @@ prepare_numa(int *oldpolicy, struct bitmask *oldmask, int socket_id)
 }
 
 static void
-resotre_numa(int *oldpolicy, struct bitmask *oldmask)
+restore_numa(int *oldpolicy, struct bitmask *oldmask)
 {
 	RTE_LOG(DEBUG, EAL,
 		"Restoring previous memory policy: %d\n", *oldpolicy);
@@ -889,7 +889,7 @@ eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz,
 
 #ifdef RTE_EAL_NUMA_AWARE_HUGEPAGES
 	if (have_numa)
-		resotre_numa(&oldpolicy, oldmask);
+		restore_numa(&oldpolicy, oldmask);
 #endif
 	return ret;
 }
Signature · 1 line
2.16.2
Acked-by on v1 1/1
#1 lore raw
Quoted 22 lines · Thomas Monjalon
Fixes 582bed1e1d1d ("mem: support mapping hugepages at runtime")
---
  lib/librte_eal/linuxapp/eal/eal_memalloc.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1 -1
index 360d8f73c..ace2bcf3e 100644
@@ -143,7 +143,7 @@ prepare_numa(int *oldpolicy, struct bitmask *oldmask, int socket_id)
  }
 
  static void
-resotre_numa(int *oldpolicy, struct bitmask *oldmask)
+restore_numa(int *oldpolicy, struct bitmask *oldmask)
  {
  	RTE_LOG(DEBUG, EAL,
  		"Restoring previous memory policy: %d\n", *oldpolicy);

lib/librte_eal/linuxapp/eal/eal_memalloc.c eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz, · line 895

Quoted 8 lines
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1 -1
@@ -889,7 +889,7 @@ eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz,
 
  #ifdef RTE_EAL_NUMA_AWARE_HUGEPAGES
  	if (have_numa)
-		resotre_numa(&oldpolicy, oldmask);
+		restore_numa(&oldpolicy, oldmask);
  #endif
  	return ret;
  }

(tempted to say "Akced"...)

Signature · 2 lines
Thanks,
Anatoly
#2 lore raw

02/05/2018 11:28, Burakov, Anatoly:

Quoted 25 lines · Thomas Monjalon
Quoted 13 lines
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1 -1
@@ -143,7 +143,7 @@ prepare_numa(int *oldpolicy, struct bitmask *oldmask, int socket_id)
  }
 
  static void
-resotre_numa(int *oldpolicy, struct bitmask *oldmask)
+restore_numa(int *oldpolicy, struct bitmask *oldmask)
  {
  	RTE_LOG(DEBUG, EAL,
  		"Restoring previous memory policy: %d\n", *oldpolicy);

lib/librte_eal/linuxapp/eal/eal_memalloc.c eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz, · line 895

Quoted 8 lines
lib/librte_eal/linuxapp/eal/eal_memalloc.c +1 -1
@@ -889,7 +889,7 @@ eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms, int n_segs, size_t page_sz,
 
  #ifdef RTE_EAL_NUMA_AWARE_HUGEPAGES
  	if (have_numa)
-		resotre_numa(&oldpolicy, oldmask);
+		restore_numa(&oldpolicy, oldmask);
  #endif
  	return ret;
  }
Quoted 1 line

(tempted to say "Akced"...)

Thnak you :)