Skip to contentSkip to conversation

mempool: Modify mismatched function name

PATCH In review Jiapeng Chong 2 participants 2 messages Mar 29, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mempool: Modify mismatched function name

No functional modification involved.

mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead. mm/mempool.c:271: warning: expecting prototype for mempool_create_node(). Prototype was for mempool_create_node_noprof() instead.

---
 mm/mempool.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/mempool.c +2 -2
index 602e6eba68d3..4fa7c78fc409 100644
@@ -227,7 +227,7 @@ int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
 EXPORT_SYMBOL(mempool_init_node);
 
 /**
- * mempool_init - initialize a memory pool
+ * mempool_init_noprof - initialize a memory pool
  * @pool:      pointer to the memory pool that should be initialized
  * @min_nr:    the minimum number of elements guaranteed to be
  *             allocated for this pool.
@@ -250,7 +250,7 @@ int mempool_init_noprof(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn,
 EXPORT_SYMBOL(mempool_init_noprof);
 
 /**
- * mempool_create_node - create a memory pool
+ * mempool_create_node_noprof - create a memory pool
  * @min_nr:    the minimum number of elements guaranteed to be
  *             allocated for this pool.
  * @alloc_fn:  user-defined element-allocation function.
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw
Quoted 4 lines · Jiapeng Chong

No functional modification involved.

mm/mempool.c:245: warning: expecting prototype for mempool_init(). Prototype was for mempool_init_noprof() instead. mm/mempool.c:271: warning: expecting prototype for mempool_create_node(). Prototype was for mempool_create_node_noprof() instead.

Please stop. This is being fixed differently.