[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <cd7cb4b5-561b-49cb-babb-393b608c98bb@gmail.com>
Date: Thu, 11 Sep 2025 08:27:43 +0900
From: Akira Yokosawa <akiyks@...il.com>
To: Jonathan Corbet <corbet@....net>
Cc: linux-kernel@...r.kernel.org,
Mauro Carvalho Chehab <mchehab+huawei@...nel.org>, linux-doc@...r.kernel.org
Subject: Re: [PATCH 13/13] docs: kdoc: a few more dump_typedef() tweaks
On Wed, 10 Sep 2025 07:46:16 -0600, Jonathan Corbet wrote:
> Akira Yokosawa <akiyks@...il.com> writes:
>
>> Hi Jon,
>>
>> A quick report on minor regression. Please see below.
>>
>> On Tue, 9 Sep 2025 14:43:49 -0600, Jonathan Corbet wrote:
>>> Merge "typedef" into the typedef_type pattern rather than repeating it
>>> later, and add some comments.
>>
>> I'm seeing new warnings after applying 13/13:
>>
>> WARNING: kernel-doc './scripts/kernel-doc.py -rst -enable-lineno ./include/media/demux.h' processing failed with: NameError("name '_type' is not defined")
[...]
>
> OK, that is embarrassing, not sure how that got through. My apologies.
>
> An add-on fix is appended if you have the patience to try it; I'll
> update the series before too long in any case.
Testing the one-liner ... , and yes it silenced the warnings.
I can't do any serious reviews on python code, but can do tests on your
"improvements".
All those noisy warnings current docs-next carries ...
Regards,
Akira
>
> Thanks for testing!
>
> jon
>
> diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py
> index 8215948dd548..2376f180b1fa 100644
> --- a/scripts/lib/kdoc/kdoc_parser.py
> +++ b/scripts/lib/kdoc/kdoc_parser.py
> @@ -1050,7 +1050,7 @@ class KernelDoc:
> f"expecting prototype for typedef {self.entry.identifier}. Prototype was for typedef {declaration_name} instead\n")
> return
>
> - self.create_parameter_list(ln, 'function',_type, args, ',', declaration_name)
> + self.create_parameter_list(ln, 'function', args, ',', declaration_name)
>
> self.output_declaration('function', declaration_name,
> typedef=True,
Powered by blists - more mailing lists