linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: fix setup_zone_pageset section mismatch
@ 2011-03-24 20:24 Randy Dunlap
  2011-03-30 22:05 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2011-03-24 20:24 UTC (permalink / raw)
  To: linux-mm; +Cc: akpm

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

Fix section mismatch warning:
setup_zone_pageset() is called from build_all_zonelists(),
which can be called at any time by NUMA sysctl handler
numa_zonelist_order_handler(),
so it should not be marked as __meminit.

WARNING: mm/built-in.o(.text+0xab17): Section mismatch in reference from the function build_all_zonelists() to the function .meminit.text:setup_zone_pageset()
The function build_all_zonelists() references
the function __meminit setup_zone_pageset().
This is often because build_all_zonelists lacks a __meminit 
annotation or the annotation of setup_zone_pageset is wrong.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.38-git13.orig/mm/page_alloc.c
+++ linux-2.6.38-git13/mm/page_alloc.c
@@ -3511,7 +3511,7 @@ static void setup_pagelist_highmark(stru
 		pcp->batch = PAGE_SHIFT * 8;
 }
 
-static __meminit void setup_zone_pageset(struct zone *zone)
+static void setup_zone_pageset(struct zone *zone)
 {
 	int cpu;
 
---

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2011-03-31  0:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-24 20:24 [PATCH] mm: fix setup_zone_pageset section mismatch Randy Dunlap
2011-03-30 22:05 ` Andrew Morton
2011-03-30 22:47   ` Randy Dunlap
2011-03-30 22:53     ` Andrew Morton
2011-03-31  0:28       ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).