diff options
Diffstat (limited to 'fs/proc/vmcore.c')
-rw-r--r-- | fs/proc/vmcore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 3b2e7b69e63a..4063fb32f78c 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/a.out.h> | 14 | #include <linux/a.out.h> |
15 | #include <linux/elf.h> | 15 | #include <linux/elf.h> |
16 | #include <linux/elfcore.h> | 16 | #include <linux/elfcore.h> |
17 | #include <linux/proc_fs.h> | ||
18 | #include <linux/highmem.h> | 17 | #include <linux/highmem.h> |
19 | #include <linux/bootmem.h> | 18 | #include <linux/bootmem.h> |
20 | #include <linux/init.h> | 19 | #include <linux/init.h> |
@@ -35,11 +34,14 @@ static size_t elfcorebuf_sz; | |||
35 | /* Total size of vmcore file. */ | 34 | /* Total size of vmcore file. */ |
36 | static u64 vmcore_size; | 35 | static u64 vmcore_size; |
37 | 36 | ||
37 | /* Stores the physical address of elf header of crash image. */ | ||
38 | unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX; | ||
39 | |||
38 | struct proc_dir_entry *proc_vmcore = NULL; | 40 | struct proc_dir_entry *proc_vmcore = NULL; |
39 | 41 | ||
40 | /* Reads a page from the oldmem device from given offset. */ | 42 | /* Reads a page from the oldmem device from given offset. */ |
41 | static ssize_t read_from_oldmem(char *buf, size_t count, | 43 | static ssize_t read_from_oldmem(char *buf, size_t count, |
42 | loff_t *ppos, int userbuf) | 44 | u64 *ppos, int userbuf) |
43 | { | 45 | { |
44 | unsigned long pfn, offset; | 46 | unsigned long pfn, offset; |
45 | size_t nr_bytes; | 47 | size_t nr_bytes; |