* [PATCH] kernel/workqueue: Document wq_worker_last_func() argument
@ 2019-03-19 17:45 Bart Van Assche
2019-03-19 17:48 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Bart Van Assche @ 2019-03-19 17:45 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-kernel, Bart Van Assche
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>
---
kernel/workqueue.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index ddee541ea97a..723964a566b1 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -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.
--
2.21.0.155.ge902e9bcae20
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel/workqueue: Document wq_worker_last_func() argument
2019-03-19 17:45 [PATCH] kernel/workqueue: Document wq_worker_last_func() argument Bart Van Assche
@ 2019-03-19 17:48 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2019-03-19 17:48 UTC (permalink / raw)
To: Bart Van Assche; +Cc: linux-kernel
On Tue, Mar 19, 2019 at 10:45:09AM -0700, Bart Van Assche wrote:
> 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>
Applied to wq/for-5.2.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-19 17:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-19 17:45 [PATCH] kernel/workqueue: Document wq_worker_last_func() argument Bart Van Assche
2019-03-19 17:48 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®