mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
efi/libstub: Cast away type warning in use of max()
commit61d130f261
upstream. Avoid a type mismatch warning in max() by switching to max_t() and providing the type explicitly. Fixes:3cb4a48275
("efi/libstub: fix efi_random_alloc() ...") Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ca8106fffc
commit
6b226ae43d
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ efi_status_t efi_random_alloc(unsigned long size,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
target = round_up(max(md->phys_addr, alloc_min), align) + target_slot * align;
|
target = round_up(max_t(u64, md->phys_addr, alloc_min), align) + target_slot * align;
|
||||||
pages = size / EFI_PAGE_SIZE;
|
pages = size / EFI_PAGE_SIZE;
|
||||||
|
|
||||||
status = efi_bs_call(allocate_pages, EFI_ALLOCATE_ADDRESS,
|
status = efi_bs_call(allocate_pages, EFI_ALLOCATE_ADDRESS,
|
||||||
|
|
Loading…
Reference in a new issue