Skip to contentSkip to conversation

linux-next: build warnings after merge of the akpm-current tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Oct 11, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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 for kmalloc(). 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 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
Signature · 1 line
Kees Cook