summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin-Hua Chen <orca.chen@gmail.com>2014-10-09 19:53:10 +0400
committerWill Deacon <will.deacon@arm.com>2014-11-06 20:25:27 +0300
commit4ee20980812b5b1800221996ec438689f61e98b4 (patch)
tree54656cbc3c9acdd858c941886fc64ad3c6db7399
parentf2001bd5b8d72071b68cbf3abe32723a067ba3f1 (diff)
downloadlinux-4ee20980812b5b1800221996ec438689f61e98b4.tar.xz
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: Will Deacon <will.deacon@arm.com>
-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;