From: Yinghai Lu Date: Wed, 9 Jul 2008 10:01:14 +0000 (-0700) Subject: x86: make e820_end return max ram type only for 32 bit X-Git-Tag: v2.6.27-rc1~1106^2~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c22d4c1885130db9c07f6441ab461208a1ba16b2;p=linux-2.6-omap-h63xx.git x86: make e820_end return max ram type only for 32 bit to avoid warning from find_low_pfn_range for high pages size etc Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index 2e08619a9c5..292ebc7fe4d 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -1066,6 +1066,11 @@ unsigned long __init e820_end(void) struct e820entry *ei = &e820.map[i]; unsigned long end_pfn; +#ifdef CONFIG_X86_32 + if (ei->type != E820_RAM) + continue; +#endif + end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT; if (end_pfn > last_pfn) last_pfn = end_pfn;