From: William Cohen <wcohen@redhat.com>
To: Randy Dunlap <randy.dunlap@oracle.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] Make kernel-doc ignore __init_or_module
Date: Tue, 23 Mar 2010 11:31:54 -0400 [thread overview]
Message-ID: <4BA8DEEA.7090102@redhat.com> (raw)
Function definitions may include __init_or_module. kernel-doc needs to
filter those out to avoid confusing __init_or_module for the function name.
Signed-off-by: William cohen <wcohen@redhat.com>
---
scripts/kernel-doc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index c7865c3..1d8db58 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1728,6 +1728,7 @@ sub dump_function($$) {
$prototype =~ s/^noinline +//;
$prototype =~ s/__devinit +//;
$prototype =~ s/__init +//;
+ $prototype =~ s/__init_or_module +//;
$prototype =~ s/^#\s*define\s+//; #ak added
$prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
--
1.6.6.1
next reply other threads:[~2010-03-23 15:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-23 15:31 William Cohen [this message]
2010-03-23 15:40 ` [PATCH] Make kernel-doc ignore __init_or_module Randy Dunlap
2010-03-23 16:07 ` William Cohen
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=4BA8DEEA.7090102@redhat.com \
--to=wcohen@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.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