diff options
Diffstat (limited to 'arch/x86/kernel/crash.c')
-rw-r--r-- | arch/x86/kernel/crash.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index e068d6683dba..74ca2fe7a0b3 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c | |||
@@ -185,10 +185,9 @@ void native_machine_crash_shutdown(struct pt_regs *regs) | |||
185 | } | 185 | } |
186 | 186 | ||
187 | #ifdef CONFIG_KEXEC_FILE | 187 | #ifdef CONFIG_KEXEC_FILE |
188 | static int get_nr_ram_ranges_callback(unsigned long start_pfn, | 188 | static int get_nr_ram_ranges_callback(u64 start, u64 end, void *arg) |
189 | unsigned long nr_pfn, void *arg) | ||
190 | { | 189 | { |
191 | int *nr_ranges = arg; | 190 | unsigned int *nr_ranges = arg; |
192 | 191 | ||
193 | (*nr_ranges)++; | 192 | (*nr_ranges)++; |
194 | return 0; | 193 | return 0; |
@@ -214,7 +213,7 @@ static void fill_up_crash_elf_data(struct crash_elf_data *ced, | |||
214 | 213 | ||
215 | ced->image = image; | 214 | ced->image = image; |
216 | 215 | ||
217 | walk_system_ram_range(0, -1, &nr_ranges, | 216 | walk_system_ram_res(0, -1, &nr_ranges, |
218 | get_nr_ram_ranges_callback); | 217 | get_nr_ram_ranges_callback); |
219 | 218 | ||
220 | ced->max_nr_ranges = nr_ranges; | 219 | ced->max_nr_ranges = nr_ranges; |