]> exis.tech > repos - linux.git/commit
slab: recognize @GFP parameter as optional in kernel-doc
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 17 Jun 2026 16:31:25 +0000 (09:31 -0700)
committerVlastimil Babka (SUSE) <vbabka@kernel.org>
Thu, 18 Jun 2026 08:40:53 +0000 (10:40 +0200)
commit7b5f5865fb11e60edd03c5e063e2d228b7062317
treea7842686fe7e228e8f95aa2f1f12a7f5be882fdd
parent6808645b71f02752852731764961a16f728772a6
slab: recognize @GFP parameter as optional in kernel-doc

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 <rdunlap@infradead.org>
Acked-by: Harry Yoo (Oracle) <harry@kernel.org>
Link: https://patch.msgid.link/20260617163125.2716279-1-rdunlap@infradead.org
Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
include/linux/slab.h