to avoid warning from find_low_pfn_range for high pages size etc
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
struct e820entry *ei = &e820.map[i];
unsigned long end_pfn;
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;
end_pfn = (ei->addr + ei->size) >> PAGE_SHIFT;
if (end_pfn > last_pfn)
last_pfn = end_pfn;