diff options
| author | Aditya Srivastava <[email protected]> | 2021-03-06 17:05:10 +0530 |
|---|---|---|
| committer | Jonathan Corbet <[email protected]> | 2021-03-08 16:04:20 -0700 |
| commit | 084aa00162bda02bcab501c2b0a0ea9252d291b2 (patch) | |
| tree | b1f09559bc301aabb8579554d0c7f3d96fb2eb17 /tools/perf/scripts/python | |
| parent | 6dbc975f4845d0326cfc82fc8b0246ce97bf84f8 (diff) | |
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 <[email protected]>
Signed-off-by: Aditya Srivastava <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions