Re: [PATCH 02/12] docs: kdoc: simplify the output-item passing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Wed,  2 Jul 2025 16:35:14 -0600
Jonathan Corbet <corbet@xxxxxxx> escreveu:

> Since our output items contain their name, we don't need to pass it
> separately.
> 
> Signed-off-by: Jonathan Corbet <corbet@xxxxxxx>

Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>

> ---
>  scripts/lib/kdoc/kdoc_files.py  | 4 ++--
>  scripts/lib/kdoc/kdoc_parser.py | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/scripts/lib/kdoc/kdoc_files.py b/scripts/lib/kdoc/kdoc_files.py
> index 9be4a64df71d..9e09b45b02fa 100644
> --- a/scripts/lib/kdoc/kdoc_files.py
> +++ b/scripts/lib/kdoc/kdoc_files.py
> @@ -275,8 +275,8 @@ class KernelFiles():
>                  self.config.log.warning("No kernel-doc for file %s", fname)
>                  continue
>  
> -            for name, arg in self.results[fname]:
> -                m = self.out_msg(fname, name, arg)
> +            for arg in self.results[fname]:
> +                m = self.out_msg(fname, arg.name, arg)
>  
>                  if m is None:
>                      ln = arg.get("ln", 0)
> diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py
> index a5a59b97a444..97380ff30a0d 100644
> --- a/scripts/lib/kdoc/kdoc_parser.py
> +++ b/scripts/lib/kdoc/kdoc_parser.py
> @@ -284,7 +284,7 @@ class KernelDoc:
>                  del sections[section]
>                  sectionlist.remove(section)
>  
> -        self.entries.append((name, item))
> +        self.entries.append(item)
>  
>          self.config.log.debug("Output: %s:%s = %s", dtype, name, pformat(args))
>  



Thanks,
Mauro




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux