Re: [PATCH 6.18 4/4] slab: recognize @GFP parameter as optional in kernel-doc

Greg KH <[email protected]>
Newsgroups org.kernel.vger.linux-hardening,org.kernel.vger.stable
Message-ID <2026070910-crisped-crewman-25ab@gregkh>
On Thu, Jul 09, 2026 at 12:33:01AM -0400, Eric Biggers wrote:
> From: Randy Dunlap <[email protected]>
> 
> commit 7b5f5865fb11e60edd03c5e063e2d228b7062317 upstream.
> 
> Since the @GFP parameter in kmalloc_obj() etc. is now optional, change
> the kernel-doc to indicate that it is optional. This avoids kernel-doc
> warnings:
> 
> WARNING: include/linux/slab.h:1101 Excess function parameter 'GFP' description in 'kmalloc_obj'
> WARNING: include/linux/slab.h:1113 Excess function parameter 'GFP' description in 'kmalloc_objs'
> WARNING: include/linux/slab.h:1128 Excess function parameter 'GFP' description in 'kmalloc_flex'
> 
> Fixes: e19e1b480ac7 ("add default_gfp() helper macro and use it in the new *alloc_obj() helpers")
> Signed-off-by: Randy Dunlap <[email protected]>
> Acked-by: Harry Yoo (Oracle) <[email protected]>
> Link: https://patch.msgid.link/[email protected]
> Signed-off-by: Vlastimil Babka (SUSE) <[email protected]>
> Signed-off-by: Eric Biggers <[email protected]>
> ---
>  include/linux/slab.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Also added to 7.1.y to keep in sync, thanks!

greg k-h
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.