Commit 6c0ef35cdc3164fda9c7ddd15db58793b1bd3263
1 parent
5721df32a3
Exists in
smarc_8mq_lf_v2020.04
and in
9 other branches
cmd: efidebug: fix int to pointer cast
On 32 bit systems fix warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] Fixes: a415d61eac26 ("cmd: map addresses to sysmem in efidebug memmap") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Showing 1 changed file with 5 additions and 3 deletions Side-by-side Diff
cmd/efidebug.c
... | ... | @@ -489,10 +489,12 @@ |
489 | 489 | |
490 | 490 | printf("%-16s %.*llx-%.*llx", type, |
491 | 491 | EFI_PHYS_ADDR_WIDTH, |
492 | - (u64)map_to_sysmem((void *)map->physical_start), | |
492 | + (u64)map_to_sysmem((void *)(uintptr_t) | |
493 | + map->physical_start), | |
493 | 494 | EFI_PHYS_ADDR_WIDTH, |
494 | - (u64)map_to_sysmem((void *)map->physical_start + | |
495 | - map->num_pages * EFI_PAGE_SIZE)); | |
495 | + (u64)map_to_sysmem((void *)(uintptr_t) | |
496 | + (map->physical_start + | |
497 | + map->num_pages * EFI_PAGE_SIZE))); | |
496 | 498 | |
497 | 499 | print_memory_attributes(map->attribute); |
498 | 500 | putc('\n'); |