task_work: add kerneldoc annotation for 'data' argument
PATCH 1/1 task_work: add kerneldoc annotation for 'data' argument
A previous commit changed the arguments to task_work_cancel_match(), but didn't document all of them.
Fixes c7aab1a7c52b ("task_work: add helper for more targeted task_work canceling")
Reported-by kernel test robot <[email protected]>
Signed-off-by Jens Axboe <[email protected]>
---
kernel/task_work.c +1 -0
@@ -78,6 +78,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 be passed in to match function * * RETURNS: * The found work or NULL if not found.
Signature · 1 line
Jens Axboe
kernel/task_work.c int task_work_add(struct task_struct *task, struct callback_head *work, · line 81
Quoted 8 lines · Jens Axboe
kernel/task_work.c +1
-0@@ -78,6 +78,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 be passed in to match function
Acked-by Oleg Nesterov <[email protected]>