[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250801081011.41975240@foz.lan>
Date: Fri, 1 Aug 2025 08:10:11 +0200
From: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
To: Jonathan Corbet <corbet@....net>
Cc: linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, Akira Yokosawa
<akiyks@...il.com>
Subject: Re: [PATCH 12/12] docs: kdoc: a few final dump_struct() touches
Em Thu, 31 Jul 2025 18:13:26 -0600
Jonathan Corbet <corbet@....net> escreveu:
> Add a couple more comments so that each phase of the process is
> now clearly marked.
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
>
> Signed-off-by: Jonathan Corbet <corbet@....net>
> ---
> scripts/lib/kdoc/kdoc_parser.py | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py
> index 131956d89f84..fa2041276f8c 100644
> --- a/scripts/lib/kdoc/kdoc_parser.py
> +++ b/scripts/lib/kdoc/kdoc_parser.py
> @@ -801,14 +801,15 @@ class KernelDoc:
> nested = NestedMatch()
> for search, sub in struct_nested_prefixes:
> members = nested.sub(search, sub, members)
> -
> - # Keeps the original declaration as-is
> + #
> + # Deal with embedded struct and union members, and drop enums entirely.
> + #
> declaration = members
> members = self.rewrite_struct_members(members)
> -
> - # Ignore other nested elements, like enums
> members = re.sub(r'(\{[^\{\}]*\})', '', members)
> -
> + #
> + # Output the result and we are done.
> + #
> self.create_parameter_list(ln, decl_type, members, ';',
> declaration_name)
> self.check_sections(ln, declaration_name, decl_type)
Thanks,
Mauro
Powered by blists - more mailing lists