mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Rini <trini@kernel.crashing.org>
To: Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Tim Waugh <twaugh@redhat.com>
Cc: Andrew Morton <akpm@osdl.org>
Subject: [PATCH] Fix scripts/kernel-doc to handle __attribute__
Date: Fri, 19 Mar 2004 10:25:53 -0700	[thread overview]
Message-ID: <20040319172553.GF4569@smtp.west.cox.net> (raw)

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/

                 reply	other threads:[~2004-03-19 17:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040319172553.GF4569@smtp.west.cox.net \
    --to=trini@kernel.crashing.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=twaugh@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®