ARM: 8396/1: use phys_addr_t in pfn_to_kaddr()
authorVitaly Andrianov <vitalya@ti.com>
Fri, 26 Jun 2015 16:13:03 +0000 (17:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 29 Jun 2015 10:16:09 +0000 (11:16 +0100)
commite48866647b486f31ff7c3927b48de8bbb1c6a4c0
treebd8b7408022cdb4735e95371b96c2b081da0b3f1
parent3de1f52a3ae823265299409e276f56cdadddc310
ARM: 8396/1: use phys_addr_t in pfn_to_kaddr()

This patch fixes pfn_to_kaddr() to use phys_addr_t.  Without this,
this macro is broken on LPAE systems. For physical addresses above
first 4GB result of shifting pfn with PAGE_SHIFT may be truncated.

Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/memory.h