]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: mm: use phys_addr_t instead of unsigned long in __map_memblock
authorMiles Chen <miles.chen@mediatek.com>
Fri, 13 Jan 2017 05:59:35 +0000 (13:59 +0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 13 Jan 2017 12:06:29 +0000 (12:06 +0000)
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>
arch/arm64/mm/mmu.c

index a43415784e125611e59a441e6e1a95d162888b87..2131521ddc243d294e378f9f1b442512b22b1bd4 100644 (file)
@@ -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