* [PATCH] mempool: Modify mismatched function name
@ 2024-03-29 3:01 Jiapeng Chong
2024-03-29 3:22 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2024-03-29 3:01 UTC (permalink / raw)
To: akpm; +Cc: linux-mm, linux-kernel, Jiapeng Chong, Abaci Robot
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.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8666
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
mm/mempool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/mempool.c b/mm/mempool.c
index 602e6eba68d3..4fa7c78fc409 100644
--- a/mm/mempool.c
+++ b/mm/mempool.c
@@ -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.
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mempool: Modify mismatched function name
2024-03-29 3:01 [PATCH] mempool: Modify mismatched function name Jiapeng Chong
@ 2024-03-29 3:22 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2024-03-29 3:22 UTC (permalink / raw)
To: Jiapeng Chong; +Cc: akpm, linux-mm, linux-kernel, Abaci Robot
On Fri, Mar 29, 2024 at 11:01:18AM +0800, Jiapeng Chong wrote:
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-29 3:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29 3:01 [PATCH] mempool: Modify mismatched function name Jiapeng Chong
2024-03-29 3:22 ` Matthew Wilcox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.