aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2014-08-25 09:06:52 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-25 18:42:19 -0400
commitb3292e88e33677a90c18236fd895ace2d80efa3c (patch)
tree9ee265c2a402a693c01cdac53b7845a200117f65 /kernel
parenta77e4accce126d50d02705c687dd0b5025b63f89 (diff)
crash_dump: Make is_kdump_kernel() accessible from modules
In order to make is_kdump_kernel() accessible from modules, need to make elfcorehdr_addr exported. This was rejected in the past [1] because reset_devices was prefered in that context (reseting the device in kdump kernel), but now there are some network drivers that need to reduce memory usage when loaded from a kdump kernel. And in that context, is_kdump_kernel() suits better. [1] - https://lkml.org/lkml/2011/1/27/341 CC: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/crash_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/crash_dump.c b/kernel/crash_dump.c
index c766ee54c0b1..b64e238b553b 100644
--- a/kernel/crash_dump.c
+++ b/kernel/crash_dump.c
@@ -18,6 +18,7 @@ unsigned long saved_max_pfn;
18 * it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE. 18 * it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE.
19 */ 19 */
20unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX; 20unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
21EXPORT_SYMBOL_GPL(elfcorehdr_addr);
21 22
22/* 23/*
23 * stores the size of elf header of crash image 24 * stores the size of elf header of crash image