crashdump: fix undefined reference to `elfcorehdr_addr'
[linux-2.6.git] / include / linux / crash_dump.h
index 6cd39a927e1fc80d2c92248e8c71895caf06aa91..025e4f5751034ac15139a704a63941a0f1d6dbce 100644 (file)
@@ -8,7 +8,13 @@
 #include <linux/proc_fs.h>
 
 #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;