From: Cyril Chemparathy Date: Fri, 20 Jul 2012 16:24:45 +0000 (-0400) Subject: ARM: mm: cleanup checks for membank overlap with vmalloc area X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2^2~3^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adf2e9fda34c1cfff2ee4e47078b1e142adb2c30;p=pandora-kernel.git ARM: mm: cleanup checks for membank overlap with vmalloc area On Keystone platforms, physical memory is entirely outside the 32-bit addressible range. Therefore, the (bank->start > ULONG_MAX) check below marks the entire system memory as highmem, and this causes unpleasentness all over. This patch eliminates the extra bank start check (against ULONG_MAX) by checking bank->start against the physical address corresponding to vmalloc_min instead. In the process, this patch also cleans up parts of the highmem sanity check code by removing what has now become a redundant check for banks that entirely overlap with the vmalloc range. Signed-off-by: Cyril Chemparathy Signed-off-by: Vitaly Andrianov Acked-by: Nicolas Pitre Tested-by: Santosh Shilimkar Tested-by: Subash Patel Signed-off-by: Will Deacon --- Reading git-diff-tree failed