X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Flinux%2Fcrash_dump.h;h=025e4f5751034ac15139a704a63941a0f1d6dbce;hb=e496e3d645c93206faf61ff6005995ebd08cc39c;hp=6cd39a927e1fc80d2c92248e8c71895caf06aa91;hpb=762b8291be6944bd891fbe2c8976a2b2e5bbc726;p=firefly-linux-kernel-4.4.55.git diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h index 6cd39a927e1f..025e4f575103 100644 --- a/include/linux/crash_dump.h +++ b/include/linux/crash_dump.h @@ -8,7 +8,13 @@ #include #define ELFCORE_ADDR_MAX (-1ULL) + +#ifdef CONFIG_PROC_VMCORE extern unsigned long long elfcorehdr_addr; +#else +static const unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX; +#endif + extern ssize_t copy_oldmem_page(unsigned long, char *, size_t, unsigned long, int); extern const struct file_operations proc_vmcore_operations;