Skip to content

Commit eac8017

Browse files
milesdotchenwildea01
authored andcommitted
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>
1 parent f92f5ce commit eac8017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/mm/mmu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ static void create_mapping_late(phys_addr_t phys, unsigned long virt,
360360

361361
static void __init __map_memblock(pgd_t *pgd, phys_addr_t start, phys_addr_t end)
362362
{
363-
unsigned long kernel_start = __pa_symbol(_text);
364-
unsigned long kernel_end = __pa_symbol(__init_begin);
363+
phys_addr_t kernel_start = __pa_symbol(_text);
364+
phys_addr_t kernel_end = __pa_symbol(__init_begin);
365365

366366
/*
367367
* Take care not to create a writable alias for the

0 commit comments

Comments
 (0)