From: Vlastimil Babka <vbabka@suse.cz>
To: Randy Dunlap <rdunlap@infradead.org>, linux-mm@kvack.org
Cc: Christoph Lameter <cl@linux.com>,
Pekka Enberg <penberg@kernel.org>,
David Rientjes <rientjes@google.com>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] mm/slab: fix kernel-doc func param names
Date: Sat, 11 Jan 2025 21:12:13 +0100 [thread overview]
Message-ID: <839258c6-58e3-48e9-9791-0f4ab3ec2fb3@suse.cz> (raw)
In-Reply-To: <20250111063257.910991-1-rdunlap@infradead.org>
On 1/11/25 07:32, Randy Dunlap wrote:
> Use corrected function parameter names to eliminate kernel-doc
> warnings:
>
> slab.h:142: warning: Function parameter or struct member 's' not described in 'slab_folio'
> slab.h:142: warning: Excess function parameter 'slab' description in 'slab_folio'
> slab.h:168: warning: Function parameter or struct member 's' not described in 'slab_page'
> slab.h:168: warning: Excess function parameter 'slab' description in 'slab_page'
I'm unable to get those warnings with "make htmldocs", what exactly do I
need to run?
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Christoph Lameter <cl@linux.com>
> Cc: Pekka Enberg <penberg@kernel.org>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Vlastimil Babka <vbabka@suse.cz>
Anyway the problem and fix seem obvious, so applied. Thanks!
> ---
> mm/slab.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> --- linux-next-20250108.orig/mm/slab.h
> +++ linux-next-20250108/mm/slab.h
> @@ -128,7 +128,7 @@ static_assert(IS_ALIGNED(offsetof(struct
>
> /**
> * slab_folio - The folio allocated for a slab
> - * @slab: The slab.
> + * @s: The slab.
> *
> * Slabs are allocated as folios that contain the individual objects and are
> * using some fields in the first struct page of the folio - those fields are
> @@ -159,7 +159,7 @@ static_assert(IS_ALIGNED(offsetof(struct
>
> /**
> * slab_page - The first struct page allocated for a slab
> - * @slab: The slab.
> + * @s: The slab.
> *
> * A convenience wrapper for converting slab to the first struct page of the
> * underlying folio, to communicate with code not yet converted to folio or
next prev parent reply other threads:[~2025-01-11 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 6:32 Randy Dunlap
2025-01-11 20:12 ` Vlastimil Babka [this message]
2025-01-11 20:24 ` Randy Dunlap
2025-01-13 9:21 ` Vlastimil Babka
2025-01-12 6:10 ` David Rientjes
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=839258c6-58e3-48e9-9791-0f4ab3ec2fb3@suse.cz \
--to=vbabka@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-mm@kvack.org \
--cc=penberg@kernel.org \
--cc=rdunlap@infradead.org \
--cc=rientjes@google.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