[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1411006010-4645-1-git-send-email-zhen-hual@hp.com>
Date: Thu, 18 Sep 2014 10:06:50 +0800
From: "Li, Zhen-Hua" <zhen-hual@...com>
To: <linux-kernel@...r.kernel.org>
Cc: "Li, Zhen-Hua" <zhen-hual@...com>
Subject: [PATCH 1/1] kdump: fix compiling error: undefined elfcorehdr_addr
While debugging the kdump kernel, I found there is a compiling error:
If is_kdump_kernel() is called in some driver(for example, add it in
debugging code in module qla2xxx), there will be a compiling error:
ERROR: "elfcorehdr_addr" [drivers/scsi/qla2xxx/qla2xxx.ko] undefined!
Add EXPORT_SYMBOL for elfcorehdr_addr will fix this.
Signed-off-by: Li, Zhen-Hua <zhen-hual@...com>
---
kernel/crash_dump.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/crash_dump.c b/kernel/crash_dump.c
index c766ee5..8cb4838 100644
--- a/kernel/crash_dump.c
+++ b/kernel/crash_dump.c
@@ -18,6 +18,7 @@ unsigned long saved_max_pfn;
* it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE.
*/
unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
+EXPORT_SYMBOL(elfcorehdr_addr);
/*
* stores the size of elf header of crash image
--
2.0.0-rc0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists