diff options
author | Kees Cook <[email protected]> | 2021-10-11 11:06:50 -0700 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2021-10-12 14:11:06 -0600 |
commit | a40a8a1103051610fdee3d121a50ced09bcc1c54 (patch) | |
tree | 25e434d3cd13ba307d8f1869a33db6670f88ed95 /scripts/documentation-file-ref-check | |
parent | aa872e0647dc0bfd69d83c3342bfac3fb4bbbb4f (diff) |
scripts: kernel-doc: Ignore __alloc_size() attribute
Fixes "Compiler Attributes: add __alloc_size() for better bounds checking"
so that the __alloc_size() macro is ignored for function prototypes when
generating kerndoc. Avoids warnings like:
./include/linux/slab.h:662: warning: Function parameter or member '1' not described in '__alloc_size'
./include/linux/slab.h:662: warning: Function parameter or member '2' not described in '__alloc_size'
./include/linux/slab.h:662: warning: expecting prototype for kcalloc(). Prototype was for __alloc_size() instead
Suggested-by: Matthew Wilcox <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions