compat: export symbol elfcorehdr_addr if it is not exported by the kernel
[~tnikolova/compat/.git] / compat / compat-3.18.c
1 #include <linux/kernel.h>
2 #include <linux/export.h>
3 #include <linux/crash_dump.h>
4
5 #ifndef HAVE_ELFCOREHDR_ADDR_EXPORTED
6 #ifndef ELFCORE_ADDR_MAX
7 #define ELFCORE_ADDR_MAX        (-1ULL)
8 #endif
9
10 unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
11 EXPORT_SYMBOL_GPL(elfcorehdr_addr);
12 #endif /* HAVE_ELFCOREHDR_ADDR_EXPORTED */