diff options
author | Aditya Srivastava <[email protected]> | 2021-02-17 20:26:25 +0530 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2021-02-22 14:20:36 -0700 |
commit | 336ced2de62d27b5a1d64672d7470e0cc7f93376 (patch) | |
tree | 5797b1f963755d7cff184233e0ae7e701a26dd8a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 163ba35ff3714d7ccb57f7e4bc2bb44365c343a0 (diff) |
scripts: kernel-doc: fix array element capture in pointer-to-func parsing
Currently, kernel-doc causes an unexpected error when array element (i.e.,
"type (*foo[bar])(args)") is present as pointer parameter in
pointer-to-function parsing.
For e.g., running kernel-doc -none on kernel/gcov/gcc_4_7.c causes this
error:
"Use of uninitialized value $param in regexp compilation at ...", in
combination with:
"warning: Function parameter or member '' not described in 'gcov_info'"
Here, the parameter parsing does not take into account the presence of
array element (i.e. square brackets) in $param.
Provide a simple fix by adding square brackets in the regex, responsible
for capturing $param.
A quick evaluation, by running 'kernel-doc -none' on entire 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]>
Tested-by: Lukas Bulwahn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions