Commit 365757c
[kernel-doc] fix extra space on function typedef return type
The typedef return type regex matches the space between typedef and the
function return type. Drop those space.
This solves a wrong warning for this kind of definition:
/**
* typedef sum - Sum function pointer.
* @A: The number A.
* @b: The number B.
*/
typedef void (*sum)(int a, int b);
Which gave:
:WARN: no description found for return-value of function 'sum()'
Looking at kernel-doc original code, the regex is the same, but the
extra space is dropped [1]:
$return_type =~ s/^\s+//;
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6b80975c630
Signed-off-by: Nicolas Schodet <nico@ni.fr.eu.org>1 parent 09205c1 commit 365757c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
2792 | | - | |
| 2792 | + | |
2793 | 2793 | | |
2794 | 2794 | | |
2795 | 2795 | | |
| |||
0 commit comments