Skip to content

Commit d3dedad

Browse files
utkarsh-1905Jonathan Corbet
authored andcommitted
kernel-doc: Added "*" in $type_constants2 to fix 'make htmldocs' warning.
Fixed: WARNING: Inline literal start-string without end-string in Documentation/core-api/workqueue.rst Added "*" in $type_constants2 in kernel-doc script to include "*" in the conversion to hightlights. Previously: %WQ_* --> ``WQ_``* After Changes: %WQ_* --> ``WQ_*`` Need for the fix: ``* is not recognized as a valid end-string for inline literal. Link: https://lore.kernel.org/linux-doc/640114d2-5780-48c3-a294-c0eba230f984@gmail.com Signed-off-by: Utkarsh Tripathi <utripathi2002@gmail.com> Suggested-by: Akira Yokosawa <akiyks@gmail.com> Reviewed-by: Akira Yokosawa <akiyks@gmail.com> Link: https://lore.kernel.org/r/20240503182650.7761-1-utripathi2002@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent fd37a0f commit d3dedad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/kernel-doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ my $anon_struct_union = 0;
6262

6363
# match expressions used to find embedded type information
6464
my $type_constant = '\b``([^\`]+)``\b';
65-
my $type_constant2 = '\%([-_\w]+)';
65+
my $type_constant2 = '\%([-_*\w]+)';
6666
my $type_func = '(\w+)\(\)';
6767
my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
6868
my $type_param_ref = '([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';

0 commit comments

Comments
 (0)