public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Section mismatch contig_page_data and bootmem_node_data
@ 2008-08-20 17:55 Sean MacLennan
  2008-08-20 19:05 ` Marcin Slusarz
  2008-08-20 21:53 ` Johannes Weiner
  0 siblings, 2 replies; 8+ messages in thread
From: Sean MacLennan @ 2008-08-20 17:55 UTC (permalink / raw)
  To: linux-kernel

If CONFIG_NEED_MULTIPLE_NODES is *not* set, then you get a section
mismatch in reference from the variable contig_page_data to the
variable __initdata bootmem_node_data.

The simple solution is to just remove the __initdata from
bootmem_node_data. We could also put an ifdef around the __initdata.

Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
---
diff --git a/mm/bootmem.c b/mm/bootmem.c
index e023c68..a968ae2 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -31,7 +31,7 @@ unsigned long max_pfn;
 unsigned long saved_max_pfn;
 #endif
 
-bootmem_data_t bootmem_node_data[MAX_NUMNODES] __initdata;
+bootmem_data_t bootmem_node_data[MAX_NUMNODES];
 
 static struct list_head bdata_list __initdata = LIST_HEAD_INIT(bdata_list);
 

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

end of thread, other threads:[~2008-08-22 13:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 17:55 [PATCH] Section mismatch contig_page_data and bootmem_node_data Sean MacLennan
2008-08-20 19:05 ` Marcin Slusarz
     [not found]   ` <20080820151531.38fc1071@lappy.seanm.ca>
     [not found]     ` <87myj74azn.fsf@skyscraper.fehenstaub.lan>
2008-08-21  0:08       ` Marcin Slusarz
2008-08-21  7:06         ` Johannes Weiner
2008-08-21 20:10           ` Marcin Slusarz
2008-08-22  6:15             ` Andrew Morton
2008-08-22 13:05               ` Marcin Slusarz
2008-08-20 21:53 ` Johannes Weiner

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