]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 9097/1: mmu: Declare section start/end correctly
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Jun 2021 10:50:49 +0000 (11:50 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 21 Jun 2021 10:39:39 +0000 (11:39 +0100)
commitbdbcfa3ff9e7c5d0e8f7ec877af3289a7b961e88
tree380bb31b60456ab791aafc27d657864322c3ab54
parent84400751064ec862f00ec39a81b32de3fdc39ff6
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 <lkp@intel.com>
Fixes: 80ada86804a8 ("ARM: 9090/1: Map the lowmem and kernel separately")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/memory.h