diff options
Diffstat (limited to 'arch/x86/platform/efi/efi.c')
-rw-r--r-- | arch/x86/platform/efi/efi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 3e1d09e885c0..ad285404ea7f 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c | |||
@@ -194,7 +194,7 @@ static void __init do_add_efi_memmap(void) | |||
194 | int __init efi_memblock_x86_reserve_range(void) | 194 | int __init efi_memblock_x86_reserve_range(void) |
195 | { | 195 | { |
196 | struct efi_info *e = &boot_params.efi_info; | 196 | struct efi_info *e = &boot_params.efi_info; |
197 | unsigned long pmap; | 197 | phys_addr_t pmap; |
198 | 198 | ||
199 | if (efi_enabled(EFI_PARAVIRT)) | 199 | if (efi_enabled(EFI_PARAVIRT)) |
200 | return 0; | 200 | return 0; |
@@ -209,7 +209,7 @@ int __init efi_memblock_x86_reserve_range(void) | |||
209 | #else | 209 | #else |
210 | pmap = (e->efi_memmap | ((__u64)e->efi_memmap_hi << 32)); | 210 | pmap = (e->efi_memmap | ((__u64)e->efi_memmap_hi << 32)); |
211 | #endif | 211 | #endif |
212 | memmap.phys_map = (void *)pmap; | 212 | memmap.phys_map = pmap; |
213 | memmap.nr_map = e->efi_memmap_size / | 213 | memmap.nr_map = e->efi_memmap_size / |
214 | e->efi_memdesc_size; | 214 | e->efi_memdesc_size; |
215 | memmap.desc_size = e->efi_memdesc_size; | 215 | memmap.desc_size = e->efi_memdesc_size; |