From: Johan Hovold <johan@kernel.org>
To: bobmcd@tuta.io
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Danilo Krummrich <dakr@kernel.org>,
Randy Dunlap <rdunlap@infradead.org>,
driver-core@lists.linux.dev
Subject: Re: [PATCH v2] devres: fix kernel-doc of the variadic devm_kmalloc_obj*() macros
Date: Fri, 4 Dec 2026 08:41:39 +0100 [thread overview]
Message-ID: <axJus5oGgzC8zfar@hovoldconsulting.com> (raw)
In-Reply-To: <20261203-fix-h3-devres-kmalloc-obj-doc-v2-1-af447f976374@tuta.io>
On Thu, Dec 03, 2026 at 07:42:39PM +0530, Yashvardhan Saraf via B4 Relay wrote:
> From: Yashvardhan Saraf <bobmcd@tuta.io>
>
> devm_kmalloc_obj(), devm_kmalloc_objs() and devm_kmalloc_flex() take
> their optional GFP flags through a variadic "..." parameter, but their
> kernel-doc comments document it as "@GFP". scripts/kernel-doc therefore
> warns:
>
> Excess function parameter 'GFP' description in 'devm_kmalloc_obj'
> Excess function parameter 'GFP' description in 'devm_kmalloc_objs'
> Excess function parameter 'GFP' description in 'devm_kmalloc_flex'
>
> and the optional argument is missing from the generated documentation.
> Use "@...:" as include/linux/slab.h already does for kmalloc_obj() and
> friends.
>
> Documentation only, no functional change.
> This issue was found with scripts/kernel-doc by an AI coding assistant
> (Claude Opus 5.5), which also drafted this patch. It has been checked
> with scripts/kernel-doc -none -Wall (the three warnings are gone), and
> drivers/base/devres.o, which includes the header, was compile-tested
> with W=1 and smatch on x86_64 allmodconfig without new warnings. Not
> runtime-tested (documentation-only change).
I dropped this paragraph when applying (such information can go below
the --- line).
> Fixes: 29a86e8818a8 ("devres: Provide kmalloc_obj*-style API for devm_kmalloc")
> Acked-by: Randy Dunlap <rdunlap@infradead.org>
> Tested-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Yashvardhan Saraf <bobmcd@tuta.io>
> ---
> Changes in v2:
> - Use my full name in the Signed-off-by line (Randy).
> - Add Randy's Acked-by and Tested-by. No code change.
> - Link to v1: https://patch.msgid.link/20261203-fix-h3-devres-kmalloc-obj-doc-v1-1-7a9e351811df@tuta.io
Applied to driver-core-testing for 7.5, thanks.
Johan
prev parent reply other threads:[~2026-12-04 7:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:12 [PATCH v2] devres: fix kernel-doc of the variadic devm_kmalloc_obj*() macros Yashvardhan Saraf via B4 Relay
2026-12-04 7:41 ` Johan Hovold [this message]
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=axJus5oGgzC8zfar@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=bobmcd@tuta.io \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=rafael@kernel.org \
--cc=rdunlap@infradead.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