projects/linux·commit 20072205

scripts/kernel-doc: fix fatal error on function prototype

20072205 · Randy Dunlap <[email protected]> · 2010-03-23 13:35:24 -07:00

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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
20072205fcdf7d85cd3101f1f11dfab333c5fd0c
Parents
5e07c2c7

Changes

1 files changed · +1 −0

FileStatusAddDelContent
scripts/kernel-docmodified+1−0View file

scripts/kernel-doc

View file
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index c297eb4..fcdfb24 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1730,6 +1730,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,]*\)\)//;