mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: efi_set_variable use const void *
The SetVariable() runtime service does not change the data passed to it. So mark the parameter as constant. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
0bda81bfdc
commit
452257a34a
3 changed files with 4 additions and 3 deletions
|
@ -230,7 +230,8 @@ struct efi_runtime_services {
|
||||||
efi_status_t (EFIAPI *set_variable)(u16 *variable_name,
|
efi_status_t (EFIAPI *set_variable)(u16 *variable_name,
|
||||||
const efi_guid_t *vendor,
|
const efi_guid_t *vendor,
|
||||||
u32 attributes,
|
u32 attributes,
|
||||||
efi_uintn_t data_size, void *data);
|
efi_uintn_t data_size,
|
||||||
|
const void *data);
|
||||||
efi_status_t (EFIAPI *get_next_high_mono_count)(
|
efi_status_t (EFIAPI *get_next_high_mono_count)(
|
||||||
uint32_t *high_count);
|
uint32_t *high_count);
|
||||||
void (EFIAPI *reset_system)(enum efi_reset_type reset_type,
|
void (EFIAPI *reset_system)(enum efi_reset_type reset_type,
|
||||||
|
|
|
@ -518,7 +518,7 @@ efi_status_t EFIAPI efi_get_next_variable_name(efi_uintn_t *variable_name_size,
|
||||||
const efi_guid_t *vendor);
|
const efi_guid_t *vendor);
|
||||||
efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||||
const efi_guid_t *vendor, u32 attributes,
|
const efi_guid_t *vendor, u32 attributes,
|
||||||
efi_uintn_t data_size, void *data);
|
efi_uintn_t data_size, const void *data);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* See section 3.1.3 in the v2.7 UEFI spec for more details on
|
* See section 3.1.3 in the v2.7 UEFI spec for more details on
|
||||||
|
|
|
@ -254,7 +254,7 @@ efi_status_t EFIAPI efi_get_next_variable_name(efi_uintn_t *variable_name_size,
|
||||||
/* http://wiki.phoenix.com/wiki/index.php/EFI_RUNTIME_SERVICES#SetVariable.28.29 */
|
/* http://wiki.phoenix.com/wiki/index.php/EFI_RUNTIME_SERVICES#SetVariable.28.29 */
|
||||||
efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
|
||||||
const efi_guid_t *vendor, u32 attributes,
|
const efi_guid_t *vendor, u32 attributes,
|
||||||
efi_uintn_t data_size, void *data)
|
efi_uintn_t data_size, const void *data)
|
||||||
{
|
{
|
||||||
char *native_name = NULL, *val = NULL, *s;
|
char *native_name = NULL, *val = NULL, *s;
|
||||||
efi_status_t ret = EFI_SUCCESS;
|
efi_status_t ret = EFI_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue