diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2010-03-23 16:35:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-24 19:31:20 -0400 |
commit | 20072205fcdf7d85cd3101f1f11dfab333c5fd0c (patch) | |
tree | e20211bdc5fcbf0995cb7430fefba9c890d337c0 | |
parent | 5e07c2c7301bd2c82e55cf5cbb36f7b5bddeb8e9 (diff) |
scripts/kernel-doc: fix fatal error on function prototype
Fix a fatal error in scripts/kernel-doc when a function signature uses
__init_or_module (just ignore that string):
Error(drivers/base/platform.c:568): cannot understand prototype: 'struct platform_device * __init_or_module platform_create_bundle(struct platform_driver *driver, int (*probe)(struct platform_device *), struct resource *res, unsigned int n_res, const void *data, size_t size) '
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-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 c297eb4785d6..fcdfb245a575 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
@@ -1730,6 +1730,7 @@ sub dump_function($$) { | |||
1730 | $prototype =~ s/^noinline +//; | 1730 | $prototype =~ s/^noinline +//; |
1731 | $prototype =~ s/__devinit +//; | 1731 | $prototype =~ s/__devinit +//; |
1732 | $prototype =~ s/__init +//; | 1732 | $prototype =~ s/__init +//; |
1733 | $prototype =~ s/__init_or_module +//; | ||
1733 | $prototype =~ s/^#\s*define\s+//; #ak added | 1734 | $prototype =~ s/^#\s*define\s+//; #ak added |
1734 | $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//; | 1735 | $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//; |
1735 | 1736 | ||