Explorar o código

[MIPS] Fix size of zones_size and zholes_size array

Commit f06a96844a577c43249fce25809a4fae07407f46 broke MIPS.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Atsushi Nemoto %!s(int64=18) %!d(string=hai) anos
pai
achega
b58e5d050f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      arch/mips/mm/init.c

+ 2 - 2
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