linux-mips
[Top] [All Lists]

Re: [PATCH] fix size of zones_size and zholes_size array

To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Subject: Re: [PATCH] fix size of zones_size and zholes_size array
From: girish <girishvg@gmail.com>
Date: Sat, 30 Sep 2006 03:41:39 +0900
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=jtBviq50U77afCkbNi16U022731rWjrKJCwIz3qiXbItv4r/NokZVJNf/v/S54kIqbLbIOzn0xX3n5EmA1AEKqA5+jM/gaZqtGFPYgKxmzbwEEjtnsiLWNBT/2jgn5KLYDcGzC3hecF49Ca+d8JvuYZjnL2gHPIBMFm+o8dQQJ8=
In-reply-to: <20060930.033406.104030456.anemo@mba.ocn.ne.jp>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060930.033406.104030456.anemo@mba.ocn.ne.jp>
Sender: linux-mips-bounce@linux-mips.org

On Sep 30, 2006, at 3:34 AM, Atsushi Nemoto wrote:

The commit f06a96844a577c43249fce25809a4fae07407f46 broke mips.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>

diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index a624778..2f346d1 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -357,10 +357,10 @@ static int __init page_is_ram(unsigned l

 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



Nemoto~san, this was your patch earlier.

 void __init paging_init(void)
 {
-       unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0};
+       unsigned long zones_size[] = { [0 ... MAX_NR_ZONES - 1] = 0 };
        unsigned long max_dma, high, low;
+#ifdef CONFIG_SPARSEMEM
+       unsigned long zholes_size[] = { [0 ... MAX_NR_ZONES - 1] = 0 };
+       unsigned long i, j, pfn;
+#endif



<Prev in Thread] Current Thread [Next in Thread>