aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/mmu.c
diff options
context:
space:
mode:
authorMin-Hua Chen <orca.chen@gmail.com>2014-10-09 16:53:10 +0100
committerWill Deacon <will.deacon@arm.com>2014-11-06 17:25:27 +0000
commit4ee20980812b5b1800221996ec438689f61e98b4 (patch)
tree54656cbc3c9acdd858c941886fc64ad3c6db7399 /arch/arm64/mm/mmu.c
parentMerge tag 'for-3.19' of git://git.linaro.org/people/ard.biesheuvel/linux-arm into ard/efi-for-3.19 (diff)
downloadlinux-dev-4ee20980812b5b1800221996ec438689f61e98b4.tar.xz
linux-dev-4ee20980812b5b1800221996ec438689f61e98b4.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: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/mm/mmu.c')
-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;