mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Baokun Li <libaokun1@huawei.com>
To: <axboe@kernel.dk>, <oleg@redhat.com>, <tglx@linutronix.de>,
	<dvyukov@google.com>, <akpm@linux-foundation.org>,
	<walter-zh.wu@mediatek.com>, <linux-kernel@vger.kernel.org>
Cc: <weiyongjun1@huawei.com>, <yuehaibing@huawei.com>,
	<yangjihong1@huawei.com>, <yukuai3@huawei.com>,
	<libaokun1@huawei.com>
Subject: [PATCH -next] task_work: fix doc warnings in task_work.c
Date: Sat, 5 Jun 2021 14:41:47 +0800	[thread overview]
Message-ID: <20210605064147.690390-1-libaokun1@huawei.com> (raw)

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'

Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
 kernel/task_work.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/task_work.c b/kernel/task_work.c
index 1698fbe6f0e1..3992ebaabde5 100644
--- a/kernel/task_work.c
+++ b/kernel/task_work.c
@@ -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.
  */
-- 
2.31.1


                 reply	other threads:[~2021-06-05  6:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210605064147.690390-1-libaokun1@huawei.com \
    --to=libaokun1@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=axboe@kernel.dk \
    --cc=dvyukov@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=walter-zh.wu@mediatek.com \
    --cc=weiyongjun1@huawei.com \
    --cc=yangjihong1@huawei.com \
    --cc=yuehaibing@huawei.com \
    --cc=yukuai3@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®