Skip to content

Commit b6e92aa

Browse files
labbottwildea01
authored andcommitted
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 <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 568c5fe commit b6e92aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/kexec_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ void __weak arch_crash_save_vmcoreinfo(void)
13991399

14001400
phys_addr_t __weak paddr_vmcoreinfo_note(void)
14011401
{
1402-
return __pa((unsigned long)(char *)&vmcoreinfo_note);
1402+
return __pa_symbol((unsigned long)(char *)&vmcoreinfo_note);
14031403
}
14041404

14051405
static int __init crash_save_vmcoreinfo_init(void)

0 commit comments

Comments
 (0)