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/[email protected] Signed-off-by: Utkarsh Tripathi <[email protected]> Suggested-by: Akira Yokosawa <[email protected]> Reviewed-by: Akira Yokosawa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Corbet <[email protected]>
1 parent fd37a0f commit d3dedad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)