From: Miaohe Lin <linmiaohe@huawei.com>
To: <ardb@kernel.org>, <will@kernel.org>, <keescook@chromium.org>,
<mingo@kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <linmiaohe@huawei.com>
Subject: [PATCH v2] lib: fix incomplete comment in refcount_dec_and_lock_irqsave()
Date: Mon, 21 Sep 2020 07:23:58 -0400 [thread overview]
Message-ID: <20200921112358.14841-1-linmiaohe@huawei.com> (raw)
The description of arg flags is incomplete. The flags is saved IRQ-flags
when the @lock is acquired.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
lib/refcount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/refcount.c b/lib/refcount.c
index ebac8b7d15a7..dcfd092f66c7 100644
--- a/lib/refcount.c
+++ b/lib/refcount.c
@@ -161,7 +161,7 @@ EXPORT_SYMBOL(refcount_dec_and_lock);
* interrupts if able to decrement refcount to 0
* @r: the refcount
* @lock: the spinlock to be locked
- * @flags: saved IRQ-flags if the is acquired
+ * @flags: saved IRQ-flags if the is @lock acquired
*
* Same as refcount_dec_and_lock() above except that the spinlock is acquired
* with disabled interupts.
--
2.19.1
next reply other threads:[~2020-09-21 11:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 11:23 Miaohe Lin [this message]
2020-09-21 11:31 ` Will Deacon
2020-09-21 11:41 linmiaohe
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=20200921112358.14841-1-linmiaohe@huawei.com \
--to=linmiaohe@huawei.com \
--cc=ardb@kernel.org \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=will@kernel.org \
/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®