projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568c5fe
)
kexec: Switch to __pa_symbol
author
Laura Abbott
<
[email protected]
>
Tue, 10 Jan 2017 21:35:43 +0000
(13:35 -0800)
committer
Will Deacon
<
[email protected]
>
Wed, 11 Jan 2017 13:56:49 +0000
(13:56 +0000)
__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 <
[email protected]
>
Tested-by: Mark Rutland <
[email protected]
>
Acked-by: "Eric W. Biederman" <
[email protected]
>
Signed-off-by: Laura Abbott <
[email protected]
>
Signed-off-by: Will Deacon <
[email protected]
>
kernel/kexec_core.c
patch
|
blob
|
history
diff --git
a/kernel/kexec_core.c
b/kernel/kexec_core.c
index 5617cc41244446f6b3065922bf0a0147c3b61394..a01974e1bf6b1b3cf9e5a8d6c628d95b0911c7e9 100644
(file)
--- 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)