u-boot/lib/efi_loader
Heinrich Schuchardt 8d4c2c770c efi_loader: fix efi_ecpt_register()
num_entries should be unsigned to avoid warnings. As the target field is
u16 we should use this type.

    lib/efi_loader/efi_conformance.c: In function ‘efi_ecpt_register’:
    lib/efi_loader/efi_conformance.c:30:33: warning:
    conversion to ‘long unsigned int’ from ‘int’ may change
    the sign of the result [-Wsign-conversion]
       30 |         ecpt_size = num_entries * sizeof(efi_guid_t)
          |                                 ^
    lib/efi_loader/efi_conformance.c:46:36: warning:
    conversion from ‘int’ to ‘u16’ {aka ‘short unsigned int’}
    may change value [-Wconversion]
       46 |         ecpt->number_of_profiles = num_entries;
          |                                    ^~~~~~~~~~~

Fixes: 6b92c17352 ("efi: Create ECPT table")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-02-10 13:05:40 +01:00
..
.gitignore efi_loader: git ignore helloworld_efi.S 2020-01-07 18:08:20 +01:00
boothart.c efi_loader: add an EFI binary to print boot hart ID 2022-12-02 19:17:24 +01:00
dtbdump.c efi_loader: move dtbdump.c, initrddump.c to lib/efi_loader 2022-03-20 17:01:00 +01:00
efi_acpi.c efi: Correct address handling with ACPI tables 2022-01-25 11:44:36 -07:00
efi_bootmgr.c bootmenu: add removable media entries 2022-09-14 08:43:32 +02:00
efi_boottime.c efi_loader: don't use HandleProtocol 2023-01-27 18:32:00 +01:00
efi_capsule.c efi_loader: adjust sorting of capsules 2023-01-04 13:17:42 +01:00
efi_conformance.c efi_loader: fix efi_ecpt_register() 2023-02-10 13:05:40 +01:00
efi_console.c efi_loader: Avoid overwriting previous outputs on console screen clearing 2023-01-20 16:38:52 +01:00
efi_device_path.c dm: sandbox: Switch over to using the new host uclass 2022-11-07 16:24:30 -07:00
efi_device_path_to_text.c efi_loader: fix display of NVMe EUI-64 2022-09-03 10:49:17 +02:00
efi_device_path_utilities.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
efi_disk.c efi: Improve logging in efi_disk 2023-01-23 18:11:39 -05:00
efi_dt_fixup.c treewide: Drop bootm_headers_t typedef 2022-09-29 16:07:57 -04:00
efi_esrt.c efi_loader: fix comment in ESRT code 2023-01-27 18:32:00 +01:00
efi_file.c efi_loader: replace a u16_strdup with alloc + memcpy 2022-11-16 08:34:06 +01:00
efi_firmware.c FWU: Add support for the FWU Multi Bank Update feature 2022-10-31 14:47:32 -04:00
efi_freestanding.c trace: Use notrace for short 2023-01-18 11:49:12 -07:00
efi_gop.c efi: Drop old LCD code 2022-10-30 20:07:17 +01:00
efi_helper.c eficonfig: carve out efi_get_next_variable_name_int calls 2022-12-20 16:06:48 +01:00
efi_hii.c efi_loader: refine set_keyboard_layout() status 2023-01-13 09:09:07 +01:00
efi_hii_config.c efi_loader: use %pUs for printing GUIDs 2022-01-19 16:16:33 +01:00
efi_image_loader.c efi_loader: image_loader: add a missing digest verification for signed PE image 2022-07-05 14:37:16 +02:00
efi_load_initrd.c efi_loader: remove efi_delete_handle on loadfile2 2022-10-16 12:23:22 +02:00
efi_load_options.c efi_loader: simplify efi_set_load_options() 2022-10-10 16:34:26 +02:00
efi_memory.c efi_loader: fix description of memory functions 2023-01-13 09:09:07 +01:00
efi_net.c efi_loader: fix handling of DHCP acknowledge 2022-12-02 19:17:24 +01:00
efi_riscv.c efi_loader: use EFI_EXIT in efi_riscv_get_boot_hartid 2023-01-13 09:09:07 +01:00
efi_rng.c efi_loader: use %pUs for printing GUIDs 2022-01-19 16:16:33 +01:00
efi_root_node.c efi_loader: define internal implementations of install/uninstallmultiple 2022-10-06 22:54:58 +02:00
efi_runtime.c Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
efi_setup.c efi_loader: fix CapsuleMax variable reporting 2023-01-20 17:10:57 +01:00
efi_signature.c efi_loader: signature: export efi_hash_regions() 2022-07-05 14:37:16 +02:00
efi_smbios.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
efi_string.c efi: Add string conversion helper 2022-10-06 22:54:57 +02:00
efi_tcg2.c efi_loader: update the error message of TCG protocol installation 2023-01-20 16:38:52 +01:00
efi_unicode_collation.c efi_loader: Fix buffer underflow 2022-11-22 11:54:30 +01:00
efi_var_common.c efi_loader: update attribute check for QueryVariableInfo() 2023-02-10 13:05:39 +01:00
efi_var_file.c efi_loader: avoid adding variables twice 2022-12-29 10:51:50 +01:00
efi_var_mem.c efi_loader: use u16_strlen() in efi_var_mem_ins() 2022-12-29 12:52:39 +01:00
efi_var_seed.S efi_loader: pre-seed UEFI variables 2020-07-16 12:37:02 +02:00
efi_variable.c efi_loader: update attribute check for QueryVariableInfo() 2023-02-10 13:05:39 +01:00
efi_variable_tee.c efi_loader: Set variable attributes when EFI_BUFFER_TOO_SMALL is returned 2022-03-20 11:03:06 +01:00
efi_watchdog.c efi_loader: update the timing of enabling and disabling EFI watchdog 2022-02-26 07:37:01 +01:00
helloworld.c efi_loader: printing UEFI revision in helloworld.efi 2022-09-03 08:16:09 +02:00
initrddump.c efi_loader: make get_load_options() static 2023-02-10 13:05:40 +01:00
Kconfig efi_loader: Avoid overwriting previous outputs on console screen clearing 2023-01-20 16:38:52 +01:00
Makefile efi_loader: add an EFI binary to print boot hart ID 2022-12-02 19:17:24 +01:00