Commit b3292e88 authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller

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] -

CC: Vivek Goyal <>
Signed-off-by: default avatarAmir Vadai <>
Signed-off-by: default avatarDavid S. Miller <>
parent a77e4acc
......@@ -18,6 +18,7 @@ unsigned long saved_max_pfn;
unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
* stores the size of elf header of crash image
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment