From: Laura Abbott Date: Tue, 10 Jan 2017 21:35:43 +0000 (-0800) Subject: kexec: Switch to __pa_symbol X-Git-Tag: v4.11-rc1~120^2~52^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e92aa81038ce57d298a87b4c44285a1d456c3e;p=thirdparty%2Flinux.git kexec: Switch to __pa_symbol __pa_symbol is the correct api to get the physical address of kernel symbols. Switch to it to allow for better debug checking. Reviewed-by: Mark Rutland Tested-by: Mark Rutland Acked-by: "Eric W. Biederman" Signed-off-by: Laura Abbott Signed-off-by: Will Deacon --- diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index 5617cc4124444..a01974e1bf6b1 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c @@ -1399,7 +1399,7 @@ void __weak arch_crash_save_vmcoreinfo(void) phys_addr_t __weak paddr_vmcoreinfo_note(void) { - return __pa((unsigned long)(char *)&vmcoreinfo_note); + return __pa_symbol((unsigned long)(char *)&vmcoreinfo_note); } static int __init crash_save_vmcoreinfo_init(void)