diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-02 10:22:23 -0500 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2017-01-04 17:07:23 -0500 |
| commit | 02a4f4fe522c29bcd4a61e094f7fe8d64f00ee06 (patch) | |
| tree | 5191feb2dc9716e9cdc563fbea2cc7777997b13f /scripts/kernel-doc | |
| parent | f2c1a053ceedec87aa355fafe60db1af27d7d830 (diff) | |
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>
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 1 |
1 files changed, 1 insertions, 0 deletions
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($$$) { | |||
| 2409 | # "[blah" in a parameter string; | 2409 | # "[blah" in a parameter string; |
| 2410 | ###$param =~ s/\s*//g; | 2410 | ###$param =~ s/\s*//g; |
| 2411 | push @parameterlist, $param; | 2411 | push @parameterlist, $param; |
| 2412 | $type =~ s/\s\s+/ /g; | ||
| 2412 | $parametertypes{$param} = $type; | 2413 | $parametertypes{$param} = $type; |
| 2413 | } | 2414 | } |
| 2414 | 2415 | ||
