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(%) { ...@@ -652,7 +652,7 @@ sub output_struct_sgml(%) {
$type = $args{'parametertypes'}{$parameter}; $type = $args{'parametertypes'}{$parameter};
if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) { if ($type =~ m/([^\(]*\(\*)\s*\)\s*\(([^\)]*)\)/) {
# pointer-to-function # pointer-to-function
print " $1 $parameter ($2);\n"; print " $1 $parameter) ($2);\n";
} elsif ($type =~ m/^(.*?)\s*(:.*)/) { } elsif ($type =~ m/^(.*?)\s*(:.*)/) {
print " $1 $parameter$2;\n"; print " $1 $parameter$2;\n";
} else { } 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