Skip to content

Commit 02a4f4f

Browse files
bonziniJonathan Corbet
authored andcommitted
kernel-doc: cleanup parameter type in function-typed arguments
A prototype like /** * foo - sample definition * @bar: a parameter */ int foo(int (*bar)(int x, int y)); is currently producing .. c:function:: int foo (int (*bar) (int x, int y) sample definition **Parameters** ``int (*)(int x, int y) bar`` a parameter Collapse the spaces so that the output is nicer. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Acked-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent f2c1a05 commit 02a4f4f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/kernel-doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,6 +2409,7 @@ sub push_parameter($$$) {
24092409
# "[blah" in a parameter string;
24102410
###$param =~ s/\s*//g;
24112411
push @parameterlist, $param;
2412+
$type =~ s/\s\s+/ /g;
24122413
$parametertypes{$param} = $type;
24132414
}
24142415

0 commit comments

Comments
 (0)