Skip to contentSkip to conversation

task_work: fix doc warnings in task_work.c

PATCH Superseded Baokun Li 1 participant 1 message Jun 5, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Baokun Li

author
#0 lore raw

PATCH 1/1 task_work: fix doc warnings in task_work.c

Add description for task_work_cancel_match to fix the W=1 warnings:

kernel/task_work.c:76: warning: Function parameter or
member 'data' not described in 'task_work_cancel_match'

---
 kernel/task_work.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/task_work.c +1 -1
index 1698fbe6f0e1..3992ebaabde5 100644
@@ -65,7 +65,7 @@ int task_work_add(struct task_struct *task, struct callback_head *work,
  * task_work_cancel_match - cancel a pending work added by task_work_add()
  * @task: the task which should execute the work
  * @match: match function to call
- *
+ * @data: data to match
  * RETURNS:
  * The found work or NULL if not found.
  */
Signature · 1 line
2.31.1