From: Linus Walleij Date: Thu, 17 Jun 2021 10:50:49 +0000 (+0100) Subject: ARM: 9097/1: mmu: Declare section start/end correctly X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e17362d683fb6bcda0e419ec0ad7cabb8252c509;p=linux.git ARM: 9097/1: mmu: Declare section start/end correctly The kernel test robot reported an interesting bug: A debug print was using %08x with kernel_sec_start and kernel_sec_end being phys_addr_t which can be either u32 or u64 (possibly more). Actually these should just be declared as u32 to begin with: they are declared as such in the assembly in head.S and the kernel definitely boots in a 32 bit physical address space. Redeclare the kernel_sec_start and kernel_sec_end to rid the bug. Reported-by: kernel test robot Fixes: 6e121df14ccd ("ARM: 9090/1: Map the lowmem and kernel separately") Signed-off-by: Linus Walleij Signed-off-by: Russell King --- diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index ca213d7d095f4..cfc9dfd70aad2 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -162,8 +162,8 @@ extern unsigned long vectors_base; * Physical start and end address of the kernel sections. These addresses are * 2MB-aligned to match the section mappings placed over the kernel. */ -extern phys_addr_t kernel_sec_start; -extern phys_addr_t kernel_sec_end; +extern u32 kernel_sec_start; +extern u32 kernel_sec_end; /* * Physical vs virtual RAM address space conversion. These are