* [PATCH] iov_iter: fix bvecq documentation warnings
@ 2026-11-30 21:45 Randy Dunlap
2026-12-01 17:51 ` Paulo Alcantara
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2026-11-30 21:45 UTC (permalink / raw)
To: linux-fsdevel, patches
Cc: Randy Dunlap, Christian Brauner, David Howells, Paulo Alcantara,
linux-block, netfs, Jonathan Corbet, Shuah Khan, linux-doc
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)
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] iov_iter: fix bvecq documentation warnings
2026-11-30 21:45 [PATCH] iov_iter: fix bvecq documentation warnings Randy Dunlap
@ 2026-12-01 17:51 ` Paulo Alcantara
0 siblings, 0 replies; 2+ messages in thread
From: Paulo Alcantara @ 2026-12-01 17:51 UTC (permalink / raw)
To: Randy Dunlap, linux-fsdevel, patches
Cc: Randy Dunlap, Christian Brauner, David Howells, linux-block,
netfs, Jonathan Corbet, Shuah Khan, linux-doc
Randy Dunlap <rdunlap@infradead.org> writes:
> 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
Reviewed-by: Paulo Alcantara <pc@manguebit.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-12-01 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 21:45 [PATCH] iov_iter: fix bvecq documentation warnings Randy Dunlap
2026-12-01 17:51 ` Paulo Alcantara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox