efi_loader: fix struct efi_input_key
The UEFI specification defines filed UnicodeChar as CHAR16. We use
u16 for CHAR16 throughout our code. The change fixes the following errors:
lib/efi_loader/initrddump.c: In function ‘efi_input’:
lib/efi_loader/initrddump.c:218:38: warning:
comparison is always false due to limited range of data type
[-Wtype-limits]
218 | if (key.unicode_char >= 0xD800 && key.unicode_char <= 0xDBFF)
| ^~
lib/efi_loader/initrddump.c:218:68: warning:
comparison is always true due to limited range of data type
[-Wtype-limits]
218 | if (key.unicode_char >= 0xD800 && key.unicode_char <= 0xDBFF)
| ^~
Fixes: 867a6ac86d
("efi: Add start-up library code")
Reported-by: Marek Vasut <marex@denx.de>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
7d840627ca
commit
4db17a4b12
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ struct efi_simple_text_output_protocol {
|
||||||
|
|
||||||
struct efi_input_key {
|
struct efi_input_key {
|
||||||
u16 scan_code;
|
u16 scan_code;
|
||||||
s16 unicode_char;
|
u16 unicode_char;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define EFI_SHIFT_STATE_INVALID 0x00000000
|
#define EFI_SHIFT_STATE_INVALID 0x00000000
|
||||||
|
|
Loading…
Reference in a new issue