mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Fix scripts/kernel-doc to handle __attribute__
@ 2004-03-19 17:25 Tom Rini
  0 siblings, 0 replies; only message in thread
From: Tom Rini @ 2004-03-19 17:25 UTC (permalink / raw)
  To: Kernel Mailing List, Tim Waugh; +Cc: Andrew Morton

Hi.  The following patch is needed so that kernel-doc can handle
functions which have __attribute__'s on them (such as __attribute__
((weak))).  The following is against 2.6.4, but I suspect applies to any
2.6 or recent'ish 2.4.

Index: linux-2.6.4/scripts/kernel-doc
===================================================================
--- linux-2.6.4.orig/scripts/kernel-doc	2004-03-10 19:55:26.000000000 -0700
+++ linux-2.6.4/scripts/kernel-doc	2004-03-19 10:19:28.437288679 -0700
@@ -1376,6 +1376,7 @@
     $prototype =~ s/^inline +//;
     $prototype =~ s/^__inline__ +//;
     $prototype =~ s/^#define +//; #ak added
+    $prototype =~ s/__attribute__ \(\([a-z,]*\)\)//;
 
     # Yes, this truly is vile.  We are looking for:
     # 1. Return type (may be nothing if we're looking at a macro)

-- 
Tom Rini
http://gate.crashing.org/~trini/

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

only message in thread, other threads:[~2004-03-19 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 17:25 [PATCH] Fix scripts/kernel-doc to handle __attribute__ Tom Rini

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

all inboxes | Powered by JetHome®