Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Wed, 7 Oct 2009
 03:50:36 -0600
Received: from mail2.lsil.com (mail2.lsil.com [147.145.40.22])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id n979oa6Z025018	for
 <andy.sharp@lsi.com>; Wed, 7 Oct 2009 02:50:36 -0700
Received: from psmtp.com (na3sys009amx205.postini.com [74.125.149.45])	by
 mail2.lsil.com (8.12.11/8.12.11) with SMTP id n979l1MR007142	for
 <andy.sharp@lsi.com>; Wed, 7 Oct 2009 02:47:02 -0700 (PDT)
Received: from source ([78.24.191.182]) by na3sys009amx205.postini.com
 ([74.125.148.14]) with SMTP;	Wed, 07 Oct 2009 09:50:35 GMT
Received: from localhost.localdomain ([127.0.0.1]:33958 "EHLO
	eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by ftp.linux-mips.org	with
 ESMTP id S1492404AbZJGJud (ORCPT <rfc822;andy.sharp@lsi.com>);	Wed, 7 Oct
 2009 11:50:33 +0200
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 07 Oct 2009 11:50:15
 +0200 (CEST)
Received: from mail.gmx.net ([213.165.64.20]:55355 "HELO mail.gmx.net"
	rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with SMTP	id S1492419AbZJGJtv
 (ORCPT <rfc822;linux-mips@linux-mips.org>);	Wed, 7 Oct 2009 11:49:51 +0200
Received: (qmail invoked by alias); 07 Oct 2009 09:49:43 -0000
Received: from unknown (EHLO localhost) [80.123.121.196]  by mail.gmx.net
 (mp012) with SMTP; 07 Oct 2009 11:49:43 +0200
From: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
To: "linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>, "linux-am33-list@redhat.com"
	<linux-am33-list@redhat.com>, "liqin.chen@sunplusct.com"
	<liqin.chen@sunplusct.com>, "x86@kernel.org" <x86@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"akpm@linux-foundation.org" <akpm@linux-foundation.org>
CC: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 7 Oct 2009 03:49:37 -0600
Subject: [PATCH 1/1] Make totalhigh_pages unsigned long.
Thread-Topic: [PATCH 1/1] Make totalhigh_pages unsigned long.
Thread-Index: AcpHM58oLAdIB3jjSheRa2NeHtYTIw==
Message-ID:
 <1254908977-12827-2-git-send-email-andreas.fenkart@streamunlimited.com>
References:
 <1254908977-12827-1-git-send-email-andreas.fenkart@streamunlimited.com>
In-Reply-To:
 <1254908977-12827-1-git-send-email-andreas.fenkart@streamunlimited.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
errors-to: linux-mips-bounce@linux-mips.org
x-scanned-by: MIMEDefang 2.39
x-pstn-levels: (S:98.98060/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <andreas.fenkart@streamunlimited.com> [db-null] 
x-pstn-neptune: 0/0/0.00/0
x-authenticated: #20192376
x-provags-id: V01U2FsdGVkX1/6IZsRwmb6Ef0vE0T5laZfKLfMfXuucFndByNMbp
	Nag5h/r09w8ZVg
x-fuhafi: 0.44
x-y-gmx-trusted: 0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Makes it consistent with the extern declaration, used when
CONFIG_HIGHMEM is set
Removes redundant casts in printout messages

Signed-off-by: Andreas Fenkart <andreas.fenkart@streamunlimited.com>
---
 arch/arm/mm/init.c               |    2 +-
 arch/mips/mm/init.c              |    2 +-
 arch/mips/sgi-ip27/ip27-memory.c |    2 +-
 arch/mn10300/mm/init.c           |    3 +--
 arch/score/mm/init.c             |    2 +-
 arch/x86/mm/init_32.c            |    3 +--
 include/linux/highmem.h          |    2 +-
 7 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 877c492..8d76b50 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -598,7 +598,7 @@ void __init mem_init(void)
 		"%dK data, %dK init, %luK highmem)\n",
 		nr_free_pages() << (PAGE_SHIFT-10), codesize >> 10,
 		datasize >> 10, initsize >> 10,
-		(unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)));
+		totalhigh_pages << (PAGE_SHIFT-10));
=20
 	if (PAGE_SIZE >=3D 16384 && num_physpages <=3D 128) {
 		extern int sysctl_overcommit_memory;
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index 15aa190..03ac816 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -420,7 +420,7 @@ void __init mem_init(void)
 	       reservedpages << (PAGE_SHIFT-10),
 	       datasize >> 10,
 	       initsize >> 10,
-	       (unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)));
+	       totalhigh_pages << (PAGE_SHIFT-10));
 }
 #endif /* !CONFIG_NEED_MULTIPLE_NODES */
=20
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-mem=
ory.c
index f61c164..bc12971 100644
--- a/arch/mips/sgi-ip27/ip27-memory.c
+++ b/arch/mips/sgi-ip27/ip27-memory.c
@@ -505,5 +505,5 @@ void __init mem_init(void)
 	       (num_physpages - tmp) << (PAGE_SHIFT-10),
 	       datasize >> 10,
 	       initsize >> 10,
-	       (unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)));
+	       totalhigh_pages << (PAGE_SHIFT-10));
 }
diff --git a/arch/mn10300/mm/init.c b/arch/mn10300/mm/init.c
index ec14205..dd27a9a 100644
--- a/arch/mn10300/mm/init.c
+++ b/arch/mn10300/mm/init.c
@@ -118,8 +118,7 @@ void __init mem_init(void)
 	       reservedpages << (PAGE_SHIFT - 10),
 	       datasize >> 10,
 	       initsize >> 10,
-	       (unsigned long) (totalhigh_pages << (PAGE_SHIFT - 10))
-	       );
+	       totalhigh_pages << (PAGE_SHIFT - 10));
 }
=20
 /*
diff --git a/arch/score/mm/init.c b/arch/score/mm/init.c
index 4e3dcd0..3739a41 100644
--- a/arch/score/mm/init.c
+++ b/arch/score/mm/init.c
@@ -111,7 +111,7 @@ void __init mem_init(void)
 			ram << (PAGE_SHIFT-10), codesize >> 10,
 			reservedpages << (PAGE_SHIFT-10), datasize >> 10,
 			initsize >> 10,
-			(unsigned long) (totalhigh_pages << (PAGE_SHIFT-10)));
+			totalhigh_pages << (PAGE_SHIFT-10));
 }
 #endif /* !CONFIG_NEED_MULTIPLE_NODES */
=20
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 30938c1..b1738d1 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -892,8 +892,7 @@ void __init mem_init(void)
 		reservedpages << (PAGE_SHIFT-10),
 		datasize >> 10,
 		initsize >> 10,
-		(unsigned long) (totalhigh_pages << (PAGE_SHIFT-10))
-	       );
+		totalhigh_pages << (PAGE_SHIFT-10));
=20
 	printk(KERN_INFO "virtual kernel memory layout:\n"
 		"    fixmap  : 0x%08lx - 0x%08lx   (%4ld kB)\n"
diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index 211ff44..ab2cc20 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -46,7 +46,7 @@ void kmap_flush_unused(void);
=20
 static inline unsigned int nr_free_highpages(void) { return 0; }
=20
-#define totalhigh_pages 0
+#define totalhigh_pages 0UL
=20
 #ifndef ARCH_HAS_KMAP
 static inline void *kmap(struct page *page)
--=20
1.6.4.3


