[lkml]   [2008]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] Section mismatch contig_page_data and bootmem_node_data
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 <>
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;

-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);

 \ /
  Last update: 2008-08-20 19:59    [W:0.045 / U:10.664 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site