efi/libstub: Cast away type warning in use of max()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 26 Mar 2024 10:15:25 +0000 (11:15 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 28 Mar 2024 15:18:57 +0000 (16:18 +0100)
commit61d130f261a3c15ae2c4b6f3ac3517d5d5b78855
treeac28a8ec49cb6c394d1a952dac38a12948b9824e
parentd21f5a59ea773826cc489acb287811d690b703cc
efi/libstub: Cast away type warning in use of max()

Avoid a type mismatch warning in max() by switching to max_t() and
providing the type explicitly.

Fixes: 3cb4a4827596abc82e ("efi/libstub: fix efi_random_alloc() ...")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/randomalloc.c