From: Atsushi Nemoto Date: Fri, 29 Sep 2006 18:34:06 +0000 (+0900) Subject: [MIPS] Fix size of zones_size and zholes_size array X-Git-Tag: v2.6.19-rc1~169^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b58e5d050ff60335b106a895a87a59a8f5475db4;p=linux-2.6 [MIPS] Fix size of zones_size and zholes_size array Commit f06a96844a577c43249fce25809a4fae07407f46 broke MIPS. Signed-off-by: Atsushi Nemoto Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 5b06349af2..88b72c9a84 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -163,10 +163,10 @@ static int __init page_is_ram(unsigned long pagenr) void __init paging_init(void) { - unsigned long zones_size[] = { 0, }; + unsigned long zones_size[MAX_NR_ZONES] = { 0, }; unsigned long max_dma, high, low; #ifndef CONFIG_FLATMEM - unsigned long zholes_size[] = { 0, }; + unsigned long zholes_size[MAX_NR_ZONES] = { 0, }; unsigned long i, j, pfn; #endif