Skip to content

Commit 4ee2098

Browse files
MilesMHwildea01
authored andcommitted
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 <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent f2001bd commit 4ee2098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/mm/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ static void __init alloc_init_pmd(pud_t *pud, unsigned long addr,
202202
}
203203

204204
static void __init alloc_init_pud(pgd_t *pgd, unsigned long addr,
205-
unsigned long end, unsigned long phys,
205+
unsigned long end, phys_addr_t phys,
206206
int map_io)
207207
{
208208
pud_t *pud;

0 commit comments

Comments
 (0)