OSDN Git Service

MIPS: relocatable: Use __kaslr_offset in show_kernel_relocation
authorJinyang He <hejinyang@loongson.cn>
Fri, 5 Feb 2021 10:11:22 +0000 (18:11 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 9 Feb 2021 09:56:04 +0000 (10:56 +0100)
commit457d2fc54f00b97367a67ef9dadebfd06772d9af
tree089bf5f402d42b2d1668a55d0f16ebf5b32a1bf7
parentd4d3ef8b347b73aa60f60f4be06acf1643e79f34
MIPS: relocatable: Use __kaslr_offset in show_kernel_relocation

The type of the VMLINUX_LOAD_ADDRESS macro is the (unsigned long long)
in 32bits kernel but (unsigned long) in the 64-bit kernel. Although there
is no error here, avoid using it to calculate kaslr_offset.

Signed-off-by: Jinyang He <hejinyang@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/relocate.c