aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAditya Srivastava <yashsri421@gmail.com>2021-03-06 17:05:10 +0530
committerJonathan Corbet <corbet@lwn.net>2021-03-08 16:04:20 -0700
commit084aa00162bda02bcab501c2b0a0ea9252d291b2 (patch)
treeb1f09559bc301aabb8579554d0c7f3d96fb2eb17 /scripts/patch-kernel
parentdocs/zh_CN: Improve zh_CN/process/8.Conclusion.rst (diff)
downloadlinux-084aa00162bda02bcab501c2b0a0ea9252d291b2.tar.gz
linux-084aa00162bda02bcab501c2b0a0ea9252d291b2.zip
scripts: kernel-doc: fix attribute capture in function parsing
Currently, kernel-doc warns for function prototype parsing on the presence of attributes "__attribute_const__" and "__flatten" in the definition. There are 166 occurrences in ~70 files in the kernel tree for "__attribute_const__" and 5 occurrences in 4 files for "__flatten". Out of 166, there are 3 occurrences in three different files with "__attribute_const__" and a preceding kernel-doc; and, 1 occurrence in ./mm/percpu.c for "__flatten" with a preceding kernel-doc. All other occurrences have no preceding kernel-doc. Add support for "__attribute_const__" and "__flatten" attributes. A quick evaluation by running 'kernel-doc -none' on kernel-tree reveals that no additional warning or error has been added or removed by the fix. Suggested-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Aditya Srivastava <yashsri421@gmail.com> Link: https://lore.kernel.org/r/20210306113510.31023-1-yashsri421@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions