mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] DocBook: allow even longer return types
@ 2006-01-21 21:39 Martin Waitz
  0 siblings, 0 replies; only message in thread
From: Martin Waitz @ 2006-01-21 21:39 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

kernel-doc errored out because it could not understand the new
__copy_to_user definition. Now we allow return types with four words.

Signed-off-by: Martin Waitz <tali@admingilde.org>

---

 scripts/kernel-doc |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

cb009807a1057eb1037c695b2e6e0282d4225621
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 9fd5f5b..b927fd2 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1529,7 +1529,7 @@ sub dump_function($$) {
     # the following functions' documentation still comes out right:
     # - parport_register_device (function pointer parameters)
     # - atomic_set (macro)
-    # - pci_match_device (long return type)
+    # - pci_match_device, __copy_to_user (long return type)
 
     if ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
 	$prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
@@ -1544,7 +1544,9 @@ sub dump_function($$) {
 	$prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
 	$prototype =~ m/^(\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
 	$prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
-	$prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/)  {
+	$prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
+	$prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
+	$prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/)  {
 	$return_type = $1;
 	$declaration_name = $2;
 	my $args = $3;
-- 
0.99.9.GIT

-- 
Martin Waitz

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-21 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 21:39 [PATCH] DocBook: allow even longer return types Martin Waitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome