]> git.baikalelectronics.ru Git - kernel.git/commit
efi: libstub: fix type confusion for load_options_size
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Sep 2022 14:14:18 +0000 (16:14 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 20 Sep 2022 12:12:45 +0000 (14:12 +0200)
commit22a936aad2c0aed52827f5fd6d09bbe728ff08db
treee7cf74429836f3112e738be2d6ea4bde803492be
parent845abcdb5f4deb02e473c0b113d9ed1b96434d37
efi: libstub: fix type confusion for load_options_size

Even though it is unlikely to ever make a difference, let's use u32
consistently for the size of the load_options provided by the firmware
(aka the command line)

While at it, do some general cleanup too: use efi_char16_t, avoid using
options_chars in places where it really means options_size, etc.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/file.c