[PATCH v2] arm: mmu fix unused variable highmem when HIGHMEM is not enable

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Sep 17 02:06:00 EDT 2009


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 arch/arm/mm/mmu.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

v2:
Fix stupid typo

diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 4426ee6..ce77023 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -687,7 +687,10 @@ __early_param("vmalloc=", early_vmalloc);
 
 static void __init sanity_check_meminfo(void)
 {
-	int i, j, highmem = 0;
+	int i, j;
+#ifdef CONFIG_HIGHMEM
+	int highmem = 0;
+#endif
 
 	for (i = 0, j = 0; i < meminfo.nr_banks; i++) {
 		struct membank *bank = &meminfo.bank[j];
-- 
1.6.4




More information about the linux-arm-kernel mailing list