diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-11 22:58:26 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 22:58:26 -0700 |
| commit | 1aa6c0d1cbfcd0608a029a805952a2ecae0794da (patch) | |
| tree | d82e152ede422b95ae612f27e9d64b9a4adba777 /scripts | |
| parent | fb14ef35baa4128d8ead9729678a251c5ea50559 (diff) | |
[PATCH] Fix scripts/kernel-doc to handle __attribute__
From: Tom Rini <trini@kernel.crashing.org>
The following patch is needed so that kernel-doc can handle functions which
have __attribute__'s on them (such as __attribute__ ((weak))).
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/kernel-doc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 3c02ef90abc8..945a28bdedbd 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1376,6 +1376,7 @@ sub dump_function($$) { $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) |
