linux-next: build warnings after merge of the akpm-current tree
Hi all,
After merging the akpm-current tree, today's linux-next build (htmldocs) produced these warnings:
include/linux/slab.h:577: warning: Function parameter or member '1' not described in '__alloc_size' include/linux/slab.h:577: warning: expecting prototype for kmalloc(). Prototype was for __alloc_size() instead include/linux/slab.h:623: warning: Function parameter or member '1' not described in '__alloc_size' include/linux/slab.h:623: warning: Function parameter or member '2' not described in '__alloc_size' include/linux/slab.h:623: warning: expecting prototype for kmalloc_array(). Prototype was for __alloc_size() instead include/linux/slab.h:644: warning: Function parameter or member '2' not described in '__alloc_size' include/linux/slab.h:644: warning: Function parameter or member '3' not described in '__alloc_size' include/linux/slab.h:644: warning: expecting prototype for krealloc_array(). Prototype was for __alloc_size() instead include/linux/slab.h:660: warning: Function parameter or member '1' not described in '__alloc_size' include/linux/slab.h:660: warning: Function parameter or member '2' not described in '__alloc_size' include/linux/slab.h:660: warning: expecting prototype for kcalloc(). Prototype was for __alloc_size() instead include/linux/slab.h:723: warning: Function parameter or member '1' not described in '__alloc_size' include/linux/slab.h:723: warning: expecting prototype for kzalloc(). Prototype was for __alloc_size() instead include/linux/slab.h:734: warning: Function parameter or member '1' not described in '__alloc_size' include/linux/slab.h:734: warning: expecting prototype for kzalloc_node(). Prototype was for __alloc_size() instead include/linux/slab.h:1: warning: no structured comments found
Introduced by commit
04ba82afbbf3 ("slab: add __alloc_size attributes for better bounds checking")
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 5 lines · Stephen Rothwell
After merging the akpm-current tree, today's linux-next build (htmldocs) produced these warnings:
include/linux/slab.h:577: warning: Function parameter or member '1' not described in '__alloc_size'include/linux/slab.h:577: warning: expecting prototype forkmalloc(). Prototype was for__alloc_size()instead
Yay kerndoc. Thanks for catching this, and I realize Matthew Wilcox predicted this earlier:
https://lore.kernel.org/lkml/[email protected]/
I will get a fix sent.
-Kees
Quoted 22 lines
include/linux/slab.h:623: warning: Function parameter or member '1' not described in '__alloc_size'include/linux/slab.h:623: warning: Function parameter or member '2' not described in '__alloc_size'include/linux/slab.h:623: warning: expecting prototype forkmalloc_array(). Prototype was for__alloc_size()insteadinclude/linux/slab.h:644: warning: Function parameter or member '2' not described in '__alloc_size'include/linux/slab.h:644: warning: Function parameter or member '3' not described in '__alloc_size'include/linux/slab.h:644: warning: expecting prototype forkrealloc_array(). Prototype was for__alloc_size()insteadinclude/linux/slab.h:660: warning: Function parameter or member '1' not described in '__alloc_size'include/linux/slab.h:660: warning: Function parameter or member '2' not described in '__alloc_size'include/linux/slab.h:660: warning: expecting prototype forkcalloc(). Prototype was for__alloc_size()insteadinclude/linux/slab.h:723: warning: Function parameter or member '1' not described in '__alloc_size'include/linux/slab.h:723: warning: expecting prototype forkzalloc(). Prototype was for__alloc_size()insteadinclude/linux/slab.h:734: warning: Function parameter or member '1' not described in '__alloc_size'include/linux/slab.h:734: warning: expecting prototype forkzalloc_node(). Prototype was for__alloc_size()insteadinclude/linux/slab.h:1: warning: no structured comments foundIntroduced by commit
04ba82afbbf3("slab: add__alloc_sizeattributes for better bounds checking")Signature · 2 lines
Cheers, Stephen Rothwell
Signature · 1 line
Kees Cook