aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2012-09-20 12:47:46 -0400
committerCyril Chemparathy <cyril@ti.com>2012-09-20 12:47:46 -0400
commit4e63f875d3a502698551d42c95fbc30815c5e10d (patch)
treef901d6e961f041037aa4880cdb967b11d6497fe9
parentc3efa5ab783df218a556a6505ade2aa7ee4af274 (diff)
downloadlinux-keystone-rebuild/16-keystone-misc.tar.gz
ARM: use phys_addr_t in pfn_to_kaddr()rebuild/16-keystone-misc
This patch fixes pfn_to_kaddr() to use phys_addr_t. Without this, this macro is broken on LPAE systems.
-rw-r--r--arch/arm/include/asm/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h
index f043da5279f1d..736a8aa32fd76 100644
--- a/arch/arm/include/asm/memory.h
+++ b/arch/arm/include/asm/memory.h
@@ -277,7 +277,7 @@ static inline void *phys_to_virt(phys_addr_t x)
*/
#define __pa(x) __virt_to_phys((unsigned long)(x))
#define __va(x) ((void *)__phys_to_virt((phys_addr_t)(x)))
-#define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
+#define pfn_to_kaddr(pfn) __va((phys_addr_t)(pfn) << PAGE_SHIFT)
/*
* These are for systems that have a hardware interconnect supported alias of