summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMin-Hua Chen <orca.chen@gmail.com>2014-10-08 17:45:59 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2014-11-13 15:58:45 +0100
commit287e8c6a41749e5affd6a4faa6a6102ba1594406 (patch)
tree6d2e729965a2cc2b9b957a177054ddeeca913d00 /arch
parentarm64: efi: Fix stub cache maintenance (diff)
downloadlinux-287e8c6a41749e5affd6a4faa6a6102ba1594406.tar.xz
linux-287e8c6a41749e5affd6a4faa6a6102ba1594406.zip
arm64: Fix data type for physical address
Use phys_addr_t for physical address in alloc_init_pud. Although phys_addr_t and unsigned long are 64 bit in arm64, it is better to use phys_addr_t to describe physical addresses. Signed-off-by: Min-Hua Chen <orca.chen@gmail.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/mm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 0bf90d26e745..f4f8b500f74c 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -202,7 +202,7 @@ static void __init alloc_init_pmd(pud_t *pud, unsigned long addr,
}
static void __init alloc_init_pud(pgd_t *pgd, unsigned long addr,
- unsigned long end, unsigned long phys,
+ unsigned long end, phys_addr_t phys,
int map_io)
{
pud_t *pud;