summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/mmu.c
diff options
context:
space:
mode:
authorMiles Chen2017-01-13 06:59:35 +0100
committerWill Deacon2017-01-13 13:06:29 +0100
commiteac8017f0c4719d30f89d1a247de7bfbf6d0da4f (patch)
tree265e2e7c2d882ac1e0c2c22522ba8fa4827dad82 /arch/arm64/mm/mmu.c
parentarm64: Advertise support for Rounding double multiply instructions (diff)
downloadkernel-qcow2-linux-eac8017f0c4719d30f89d1a247de7bfbf6d0da4f.tar.gz
kernel-qcow2-linux-eac8017f0c4719d30f89d1a247de7bfbf6d0da4f.tar.xz
kernel-qcow2-linux-eac8017f0c4719d30f89d1a247de7bfbf6d0da4f.zip
arm64: mm: use phys_addr_t instead of unsigned long in __map_memblock
Cosmetic change to use phys_addr_t instead of unsigned long for the return value of __pa_symbol(). Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Miles Chen <miles.chen@mediatek.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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index a43415784e12..2131521ddc24 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -360,8 +360,8 @@ static void create_mapping_late(phys_addr_t phys, unsigned long virt,
static void __init __map_memblock(pgd_t *pgd, phys_addr_t start, phys_addr_t end)
{
- unsigned long kernel_start = __pa_symbol(_text);
- unsigned long kernel_end = __pa_symbol(__init_begin);
+ phys_addr_t kernel_start = __pa_symbol(_text);
+ phys_addr_t kernel_end = __pa_symbol(__init_begin);
/*
* Take care not to create a writable alias for the