]> git.hungrycats.org Git - linux/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:11:47 +0000 (15:11 +0200)
commit08a1c716d2fe3f7588d154b08e14186d004ca8e1
tree8e56de875aa5640b270b9fb85983ff1893913f64
parentc44a62c3dbc44e9be68af71874b32593c4d7d982
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