From: Paolo Bonzini Date: Mon, 2 Jan 2017 15:22:23 +0000 (+0100) Subject: kernel-doc: cleanup parameter type in function-typed arguments X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02a4f4fe522c29bcd4a61e094f7fe8d64f00ee06;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Jani Nikula Signed-off-by: Jonathan Corbet --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 030fc633acd4..c1ea91c2e497 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -2409,6 +2409,7 @@ sub push_parameter($$$) { # "[blah" in a parameter string; ###$param =~ s/\s*//g; push @parameterlist, $param; + $type =~ s/\s\s+/ /g; $parametertypes{$param} = $type; }