From: Randy Dunlap <rdunlap@infradead.org>
To: linux-fsdevel@vger.kernel.org, patches@lists.linux.dev
Cc: Randy Dunlap <rdunlap@infradead.org>,
Christian Brauner <brauner@kernel.org>,
David Howells <dhowells@redhat.com>,
Paulo Alcantara <pc@manguebit.org>,
linux-block@vger.kernel.org, netfs@lists.linux.dev,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
linux-doc@vger.kernel.org
Subject: [PATCH] iov_iter: fix bvecq documentation warnings
Date: Mon, 30 Nov 2026 13:45:18 -0800 [thread overview]
Message-ID: <20261130214518.505775-1-rdunlap@infradead.org> (raw)
Use "@flags" to refer to the flags parameters. Avoid "*flags" since that
causes warnings.
Clarify the Return: results for success or failure.
Fixes these warnings:
Documentation/core-api/bvecq:259: fs/netfs/bvecq.c:65: WARNING: Inline emphasis start-string without end-string. [docutils]
Documentation/core-api/bvecq:259: fs/netfs/bvecq.c:138: WARNING: Inline emphasis start-string without end-string. [docutils]
Documentation/core-api/bvecq:259: fs/netfs/bvecq.c:143: WARNING: Inline emphasis start-string without end-string. [docutils]
Documentation/core-api/bvecq:259: fs/netfs/bvecq.c:195: WARNING: Inline emphasis start-string without end-string. [docutils]
Fixes: ca90a27f2d94 ("iov_iter: Add an API document for the bvecq structure")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
Cc: Christian Brauner <brauner@kernel.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Paulo Alcantara <pc@manguebit.org>
Cc: linux-block@vger.kernel.org
Cc: netfs@lists.linux.dev
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: linux-doc@vger.kernel.org
fs/netfs/bvecq.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
--- linux-next-20261130.orig/fs/netfs/bvecq.c
+++ linux-next-20261130/fs/netfs/bvecq.c
@@ -62,8 +62,8 @@ EXPORT_SYMBOL(bvecq_dump);
* objects in the pool than processes trying to allocate from it - guaranteeing
* that at least some progress can be made.
*
- * Return: The node pointer or NULL on allocation failure. BVECQ_HIT_OOM is
- * set in *flags if an allocation failure occurs.
+ * Return: The node pointer on success or NULL on allocation failure.
+ * BVECQ_HIT_OOM is set in @flags if an allocation failure occurs.
*/
struct bvecq *bvecq_alloc_one(size_t nr_slots, gfp_t gfp, unsigned int *flags)
{
@@ -138,10 +138,10 @@ EXPORT_SYMBOL(bvecq_alloc_one);
*
* Allocate a chain of bvecq nodes providing at least the requested cumulative
* number of slots. Each node is a maximum of 4KiB in size. If
- * %BVECQ_SHORT_OKAY is set in *%flags, then the chain may be shortened on OOM.
+ * %BVECQ_SHORT_OKAY is set in @flags, then the chain may be shortened on OOM.
*
- * Return: The first node pointer or NULL on allocation failure. BVECQ_HIT_OOM
- * is set in *flags if an allocation failure occurs.
+ * Return: The first node pointer on success or NULL on allocation failure.
+ * BVECQ_HIT_OOM is set in @flags if an allocation failure occurs.
*/
struct bvecq *bvecq_alloc_chain(size_t nr_slots, gfp_t gfp, unsigned int *flags)
{
@@ -192,10 +192,10 @@ EXPORT_SYMBOL(bvecq_alloc_chain);
* larger than PAGE_SIZE and thus occupy fewer slots. The pages have their
* refcounts set to 1 and can be passed to MSG_SPLICE_PAGES.
*
- * Return: The first node pointer or NULL on allocation failure. BVECQ_HIT_OOM
- * is set in *flags if a bvecq chain allocation failure occurs (though if
- * %BVECQ_SHORT_OKAY is set, the func may return early but will have at least
- * one bvecq in the allocation).
+ * Return: The first node pointer on success or NULL on allocation failure.
+ * BVECQ_HIT_OOM is set in @flags if a bvecq chain allocation failure occurs
+ * (though if %BVECQ_SHORT_OKAY is set, the function may return early but
+ * will have at least one bvecq in the allocation).
*/
struct bvecq *bvecq_alloc_buffer2(size_t size, unsigned int pre_slots, gfp_t gfp,
unsigned int *flags)
next reply other threads:[~2026-11-30 21:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 21:45 Randy Dunlap [this message]
2026-12-01 17:51 ` [PATCH] iov_iter: fix bvecq documentation warnings Paulo Alcantara
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=20261130214518.505775-1-rdunlap@infradead.org \
--to=rdunlap@infradead.org \
--cc=brauner@kernel.org \
--cc=corbet@lwn.net \
--cc=dhowells@redhat.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=netfs@lists.linux.dev \
--cc=patches@lists.linux.dev \
--cc=pc@manguebit.org \
--cc=skhan@linuxfoundation.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