diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2014-08-24 21:17:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-26 16:49:57 -0400 |
commit | 270a00963cd367214e92e6deadb3bde65b49b16a (patch) | |
tree | 578f578ce9990ed1c023382d83d655770516e5d8 /scripts/kernel-doc | |
parent | 52addcf9d6669fa439387610bc65c92fa0980cef (diff) |
scripts/kernel-doc: recognize __meminit
Fix scripts/kernel-doc to recognize __meminit in a function prototype
and to strip it, as done with many other attributes.
Fixes this warning:
Warning(..//mm/page_alloc.c:2973): cannot understand function prototype: 'void * __meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask) '
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/kernel-doc')
-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 16a07cfa4d34..70bea942b413 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -2085,6 +2085,7 @@ sub dump_function($$) { | |||
2085 | $prototype =~ s/^noinline +//; | 2085 | $prototype =~ s/^noinline +//; |
2086 | $prototype =~ s/__init +//; | 2086 | $prototype =~ s/__init +//; |
2087 | $prototype =~ s/__init_or_module +//; | 2087 | $prototype =~ s/__init_or_module +//; |
2088 | $prototype =~ s/__meminit +//; | ||
2088 | $prototype =~ s/__must_check +//; | 2089 | $prototype =~ s/__must_check +//; |
2089 | $prototype =~ s/__weak +//; | 2090 | $prototype =~ s/__weak +//; |
2090 | my $define = $prototype =~ s/^#\s*define\s+//; #ak added | 2091 | my $define = $prototype =~ s/^#\s*define\s+//; #ak added |