The patch titled AVR32: Don't assume anything about MAX_NR_ZONES has been removed from the -mm tree. Its filename is avr32-dont-assume-anything-about-max_nr_zones.patch This patch was dropped because it was folded into avr32-arch.patch ------------------------------------------------------ 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 origin.patch avr32-arch.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-fix-bug-in-__avr32_asr64.patch avr32-switch-to-generic-timekeeping-framework.patch avr32-set-kbuild_defconfig.patch avr32-kprobes-compile-fix.patch avr32-asm-ioh-should-include-asm-byteorderh.patch avr32-fix-output-constraints-in-asm-bitopsh.patch avr32-standardize-pxx_page-macros-fix.patch avr32-rename-at32stk100x-atstk100x.patch avr32-dont-leave-dbe-set-when-resetting-cpu.patch avr32-make-prot_write-prot_exec-imply-prot_read.patch avr32-remove-set_wmb.patch avr32-use-parse_early_param.patch avr32-fix-exported-headers.patch avr32-fix-__const_udelay-overflow-bug.patch remove-zone_dma-remains-from-avr32.patch avr32-mtd-static-memory-controller-driver-try-2.patch avr32-mtd-at49bv6416-platform-device-for-atstk1000.patch directed-yield-cpu_relax-variants-for-spinlocks-and-rw-locks.patch generic-ioremap_page_range-implementation.patch generic-ioremap_page_range-implementation-fix.patch generic-ioremap_page_range-implementation-nommu-fix.patch generic-ioremap_page_range-flush_cache_vmap.patch generic-ioremap_page_range-alpha-conversion.patch generic-ioremap_page_range-avr32-conversion.patch generic-ioremap_page_range-cris-conversion.patch generic-ioremap_page_range-i386-conversion.patch generic-ioremap_page_range-i386-conversion-fix.patch generic-ioremap_page_range-m32r-conversion.patch generic-ioremap_page_range-mips-conversion.patch generic-ioremap_page_range-mips-conversion-fix.patch generic-ioremap_page_range-parisc-conversion.patch generic-ioremap_page_range-s390-conversion.patch generic-ioremap_page_range-sh-conversion.patch generic-ioremap_page_range-sh64-conversion.patch generic-ioremap_page_range-x86_64-conversion.patch generic-ioremap_page_range-x86_64-conversion-fix.patch avr32-implement-kernel_execve.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