Commit b6671d5a authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] trivial: scripts_kernel-doc: missing bracket.

From:  <adobriyan@mail.ru>

Fix missing bracket when parameter to be documented is a pointer to function.

int (* resume (struct usb_interface *intf);
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2e15f540
......@@ -652,7 +652,7 @@ sub output_struct_sgml(%) {
$type = $args{'parametertypes'}{$parameter};
if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
# pointer-to-function
print " $1 $parameter ($2);\n";
print " $1 $parameter) ($2);\n";
} elsif ($type =~ m/^(.*?)\s*(:.*)/) {
print " $1 $parameter$2;\n";
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment