Skip to content

Commit

Permalink
kernel/workqueue: Document wq_worker_last_func() argument
Browse files Browse the repository at this point in the history
This patch avoids that the following warning is reported when building
with W=1:

kernel/workqueue.c:938: warning: Function parameter or member 'task' not described in 'wq_worker_last_func'

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Bart Van Assche authored and Tejun Heo committed Mar 19, 2019
1 parent a2775bb commit 8194fe9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ struct task_struct *wq_worker_sleeping(struct task_struct *task)

/**
* wq_worker_last_func - retrieve worker's last work function
* @task: Task to retrieve last work function of.
*
* Determine the last function a worker executed. This is called from
* the scheduler to get a worker's last known identity.
Expand Down

0 comments on commit 8194fe9

Please sign in to comment.