]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:53 +0000 (15:28 +0200)
commit90048007daeaffc0c621f44709f6b72a589d618b
tree892455c2602145cf74dd35c0516f9b31321ac9a6
parent01666eece40e522f8335969e7081c481c74f1046
efi/libstub: Cast away type warning in use of max()

commit 61d130f261a3c15ae2c4b6f3ac3517d5d5b78855 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/randomalloc.c