[PATCH v7 4/5] crash: export paddr_vmcoreinfo_note()

From: Marc-Andrà Lureau
Date: Mon Nov 20 2017 - 04:56:05 EST


The following patch is going to use the symbol from the fw_cfg module,
to call the function and write the note location details in the
vmcoreinfo entry, so qemu can produce dumps with the vmcoreinfo note.

CC: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
CC: Baoquan He <bhe@xxxxxxxxxx>
CC: Dave Young <dyoung@xxxxxxxxxx>
CC: Dave Young <dyoung@xxxxxxxxxx>
CC: Hari Bathini <hbathini@xxxxxxxxxxxxxxxxxx>
CC: Tony Luck <tony.luck@xxxxxxxxx>
CC: Vivek Goyal <vgoyal@xxxxxxxxxx>
Signed-off-by: Marc-Andrà Lureau <marcandre.lureau@xxxxxxxxxx>
Acked-by: Gabriel Somlo <somlo@xxxxxxx>
---
kernel/crash_core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/crash_core.c b/kernel/crash_core.c
index b3663896278e..2394f0501c65 100644
--- a/kernel/crash_core.c
+++ b/kernel/crash_core.c
@@ -376,6 +376,7 @@ phys_addr_t __weak paddr_vmcoreinfo_note(void)
{
return __pa(vmcoreinfo_note);
}
+EXPORT_SYMBOL(paddr_vmcoreinfo_note);

static int __init crash_save_vmcoreinfo_init(void)
{
--
2.15.0.277.ga3d2ad2c43