mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] scripts/kernel-doc: fix fatal error in function signature
@ 2010-03-16 17:43 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2010-03-16 17:43 UTC (permalink / raw)
  To: lkml; +Cc: torvalds

From: Randy Dunlap <randy.dunlap@oracle.com>

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>
---
 scripts/kernel-doc |    1 +
 1 file changed, 1 insertion(+)

--- lnx-2634-rc1.orig/scripts/kernel-doc
+++ lnx-2634-rc1/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,]*\)\)//;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-16 17:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-16 17:43 [PATCH 1/2] scripts/kernel-doc: fix fatal error in function signature Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®