On 6/17/26 1:38 PM, Randy Dunlap wrote: > On 6/16/26 8:25 PM, Harry Yoo wrote: >> [+Cc Kees and Jonathan] >> >> On 6/17/26 4:39 AM, Randy Dunlap wrote: >>> 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 >>> --- >> >> I think there is no better way to specify an optional parameter, so: >> Acked-by: Harry Yoo (Oracle) >> >> By the way, the doc should probably say that it is GFP_KERNEL when it is >> not specified? > > How about (in general): > > * @...: optional GFP flags for the allocation (GFP_KERNEL when not specified) > > ? Looks good to me! -- Cheers, Harry / Hyeonggon