Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cbb999dd authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Will Deacon
Browse files

arm64: Use __pa_symbol for empty_zero_page



If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:

    virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
    WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
    ...
    [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
    [<ffffff8008a02600>] setup_arch+0x46c/0x4d4

Fixes: 2077be67 ("arm64: Use __pa_symbol for kernel symbols")
Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
Acked-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 4a8d8a14
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
	 * faults in case uaccess_enable() is inadvertently called by the init
	 * faults in case uaccess_enable() is inadvertently called by the init
	 * thread.
	 * thread.
	 */
	 */
	init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
	init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
#endif
#endif


#ifdef CONFIG_VT
#ifdef CONFIG_VT