[PATCH] kthread: modify kernel-doc function name to match code

Randy Dunlap posted 1 patch 1 year ago
kernel/kthread.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] kthread: modify kernel-doc function name to match code
Posted by Randy Dunlap 1 year ago
kthread.c:1073: warning: expecting prototype for kthread_create_worker(). Prototype was for kthread_create_worker_on_node() instead

Fixes: b1e125dcbcea ("kthread: Unify kthread_create_on_cpu() and kthread_create_worker_on_cpu() automatic format")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
---
 kernel/kthread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20250108.orig/kernel/kthread.c
+++ linux-next-20250108/kernel/kthread.c
@@ -1059,7 +1059,7 @@ fail_task:
 }
 
 /**
- * kthread_create_worker - create a kthread worker
+ * kthread_create_worker_on_node - create a kthread worker
  * @flags: flags modifying the default behavior of the worker
  * @node: task structure for the thread is allocated on this node
  * @namefmt: printf-style name for the kthread worker (task).