[Linux-kernel-mentees] [RFC] scripts: kernel-doc: fix array element capture in pointer-to-func parsing
yashsri421 at gmail.com
Tue Feb 23 11:35:34 UTC 2021
On 23/2/21 3:03 am, Jonathan Corbet wrote:
> Aditya Srivastava <yashsri421 at gmail.com> writes:
>> 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
>> "Use of uninitialized value $param in regexp compilation at ...", in
>> combination with:
>> "warning: Function parameter or member '' not described in 'gcov_info'"
> In the future, please quote error messages from the kernel verbatim.
> You can trim irrelevant stuff before or after, but please do not edit
> them in this way. That helps me to understand what you are fixing, and
> is also useful for anybody else who might be searching for a solution to
> the same problem.
>> 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
> ...meanwhile, I have applied this one, thanks.
Thanks Jonathan! Will keep this in mind..
More information about the Linux-kernel-mentees