The patch titled AVR32: Don't assume anything about MAX_NR_ZONES has been added to the -mm tree. Its filename is avr32-dont-assume-anything-about-max_nr_zones.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: AVR32: Don't assume anything about MAX_NR_ZONES From: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx> Zero out zones_size with memset() and initialize just the zones we need. This should avoid breakage when zones come and go. Signed-off-by: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/avr32/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN arch/avr32/mm/init.c~avr32-dont-assume-anything-about-max_nr_zones arch/avr32/mm/init.c --- a/arch/avr32/mm/init.c~avr32-dont-assume-anything-about-max_nr_zones +++ a/arch/avr32/mm/init.c @@ -380,7 +380,7 @@ void __init paging_init(void) for_each_online_node(nid) { pg_data_t *pgdat = NODE_DATA(nid); - unsigned long zones_size[MAX_NR_ZONES] = { 0, 0, 0 }; + unsigned long zones_size[MAX_NR_ZONES]; unsigned long low, start_pfn; start_pfn = pgdat->bdata->node_boot_start; @@ -388,8 +388,8 @@ void __init paging_init(void) low = pgdat->bdata->node_low_pfn; /* All memory is DMA-able */ + memset(zones_size, 0, sizeof(zones_size)); zones_size[ZONE_DMA] = low - start_pfn; - zones_size[ZONE_NORMAL] = 0; printk("Node %u: start_pfn = 0x%lx, low = 0x%lx\n", nid, start_pfn, low); _ Patches currently in -mm which might be from hskinnemoen@xxxxxxxxx are avr32-arch.patch avr32-config_debug_bugverbose-and-config_frame_pointer.patch avr32-fix-invalid-constraints-for-stcond.patch avr32-add-support-for-irq-flags-state-tracing.patch avr32-turn-off-support-for-discontigmem-and-sparsemem.patch avr32-always-enable-config_embedded.patch avr32-export-the-find__bit-functions.patch avr32-add-defconfig-for-at32stk1002.patch avr32-use-autoconf-instead-of-marker.patch avr32-dont-assume-anything-about-max_nr_zones.patch avr32-add-i-o-port-access-primitives.patch avr32-use-linux-pfnh.patch avr32-kill-config_discontigmem-support-completely.patch avr32-add-nsproxy-definition.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html