mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +02:00
efi_loader: add missing const qualifier
This commit fixes the following compilation warning of boottime->install_configuration_table() function. lib/efi_selftest/efi_selftest_tcg2.c:475:46: warning: passing argument 1 of ‘boottime->install_configuration_table’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] ret = boottime->install_configuration_table(&smbios_guid, dmi); Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
8e7791a959
commit
f86352eb82
@@ -120,7 +120,7 @@ struct efi_boot_services {
|
|||||||
struct efi_device_path **device_path,
|
struct efi_device_path **device_path,
|
||||||
efi_handle_t *device);
|
efi_handle_t *device);
|
||||||
efi_status_t (EFIAPI *install_configuration_table)(
|
efi_status_t (EFIAPI *install_configuration_table)(
|
||||||
efi_guid_t *guid, void *table);
|
const efi_guid_t *guid, void *table);
|
||||||
|
|
||||||
efi_status_t (EFIAPI *load_image)(bool boot_policiy,
|
efi_status_t (EFIAPI *load_image)(bool boot_policiy,
|
||||||
efi_handle_t parent_image,
|
efi_handle_t parent_image,
|
||||||
|
@@ -1690,7 +1690,8 @@ out:
|
|||||||
*
|
*
|
||||||
* Return: status code
|
* Return: status code
|
||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_install_configuration_table_ext(efi_guid_t *guid,
|
static efi_status_t
|
||||||
|
EFIAPI efi_install_configuration_table_ext(const efi_guid_t *guid,
|
||||||
void *table)
|
void *table)
|
||||||
{
|
{
|
||||||
EFI_ENTRY("%pUl, %p", guid, table);
|
EFI_ENTRY("%pUl, %p", guid, table);
|
||||||
|
Reference in New Issue
Block a user