Re: [PATCH v3] kernel-doc: Added "*" in $type_constants2 to fix 'make htmldocs' warning.

From: Bagas Sanjaya
Date: Sat May 04 2024 - 03:17:55 EST


On Fri, May 03, 2024 at 11:56:50PM +0530, Utkarsh Tripathi wrote:
> diff --git a/scripts/kernel-doc b/scripts/kernel-doc
> index cb1be22afc65..58129b1cf3f4 100755
> --- a/scripts/kernel-doc
> +++ b/scripts/kernel-doc
> @@ -62,7 +62,7 @@ my $anon_struct_union = 0;
>
> # match expressions used to find embedded type information
> my $type_constant = '\b``([^\`]+)``\b';
> -my $type_constant2 = '\%([-_\w]+)';
> +my $type_constant2 = '\%([-_*\w]+)';
> my $type_func = '(\w+)\(\)';
> my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
> my $type_param_ref = '([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
>

The warning gone away, thanks!

Tested-by: Bagas Sanjaya <bagasdotme@xxxxxxxxx>

--
An old man doll... just what I always wanted! - Clara

Attachment: signature.asc
Description: PGP signature