[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1e4c4108-feb4-9ab6-7c1c-13200658470c@gmail.com>
Date: Tue, 23 Feb 2021 17:05:34 +0530
From: Aditya <yashsri421@...il.com>
To: Jonathan Corbet <corbet@....net>
Cc: lukas.bulwahn@...il.com,
linux-kernel-mentees@...ts.linuxfoundation.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org
Subject: Re: [RFC] scripts: kernel-doc: fix array element capture in
pointer-to-func parsing
On 23/2/21 3:03 am, Jonathan Corbet wrote:
> Aditya Srivastava <yashsri421@...il.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
>> error:
>> "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..
Thanks
Aditya
Powered by blists - more mailing lists