All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scripts/kernel-doc: recognize __meminit attribute
@ 2014-08-16 21:14 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2014-08-16 21:14 UTC (permalink / raw)
  To: LKML, Linux MM

From: Randy Dunlap <rdunlap@infradead.org>

Fix scripts/kernel-doc to recognize __meminit in a function prototype
and to stip 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>
---
 scripts/kernel-doc |    1 +
 1 file changed, 1 insertion(+)

Added to my patch queue.

Index: lnx-317-rc1/scripts/kernel-doc
===================================================================
--- lnx-317-rc1.orig/scripts/kernel-doc
+++ lnx-317-rc1/scripts/kernel-doc
@@ -2085,6 +2085,7 @@ sub dump_function($$) {
     $prototype =~ s/^noinline +//;
     $prototype =~ s/__init +//;
     $prototype =~ s/__init_or_module +//;
+    $prototype =~ s/__meminit +//;
     $prototype =~ s/__must_check +//;
     $prototype =~ s/__weak +//;
     my $define = $prototype =~ s/^#\s*define\s+//; #ak added

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] scripts/kernel-doc: recognize __meminit attribute
@ 2014-08-16 21:14 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2014-08-16 21:14 UTC (permalink / raw)
  To: LKML, Linux MM

From: Randy Dunlap <rdunlap@infradead.org>

Fix scripts/kernel-doc to recognize __meminit in a function prototype
and to stip 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>
---
 scripts/kernel-doc |    1 +
 1 file changed, 1 insertion(+)

Added to my patch queue.

Index: lnx-317-rc1/scripts/kernel-doc
===================================================================
--- lnx-317-rc1.orig/scripts/kernel-doc
+++ lnx-317-rc1/scripts/kernel-doc
@@ -2085,6 +2085,7 @@ sub dump_function($$) {
     $prototype =~ s/^noinline +//;
     $prototype =~ s/__init +//;
     $prototype =~ s/__init_or_module +//;
+    $prototype =~ s/__meminit +//;
     $prototype =~ s/__must_check +//;
     $prototype =~ s/__weak +//;
     my $define = $prototype =~ s/^#\s*define\s+//; #ak added

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-16 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-16 21:14 [PATCH] scripts/kernel-doc: recognize __meminit attribute Randy Dunlap
2014-08-16 21:14 ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.