mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 20:34:38 +00:00
efi_loader: add missing const classifier for event service
const classifier is missing in EventGroup parameter of CreateEventEx(). Fix it to remove the compiler warning. NotifyContext parameter of CreateEventEx() is also defined with const in UEFI specification, but NotifyContext parameter of CreateEvent() is defined without const. Since current implementation calls the common efi_create_event() function from both CreateEventEx() and CreateEvent() services, NotifyContext parameter leaves as is. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
550862bc12
commit
e23c8e81eb
3 changed files with 4 additions and 4 deletions
|
@ -192,7 +192,7 @@ struct efi_boot_services {
|
|||
struct efi_event *event,
|
||||
void *context),
|
||||
void *notify_context,
|
||||
efi_guid_t *event_group,
|
||||
const efi_guid_t *event_group,
|
||||
struct efi_event **event);
|
||||
};
|
||||
|
||||
|
|
|
@ -684,7 +684,7 @@ efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
|
|||
void (EFIAPI *notify_function) (
|
||||
struct efi_event *event,
|
||||
void *context),
|
||||
void *notify_context, efi_guid_t *group,
|
||||
void *notify_context, const efi_guid_t *group,
|
||||
struct efi_event **event);
|
||||
/* Call this to set a timer */
|
||||
efi_status_t efi_set_timer(struct efi_event *event, enum efi_timer_delay type,
|
||||
|
|
|
@ -712,7 +712,7 @@ efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
|
|||
void (EFIAPI *notify_function) (
|
||||
struct efi_event *event,
|
||||
void *context),
|
||||
void *notify_context, efi_guid_t *group,
|
||||
void *notify_context, const efi_guid_t *group,
|
||||
struct efi_event **event)
|
||||
{
|
||||
struct efi_event *evt;
|
||||
|
@ -790,7 +790,7 @@ efi_status_t EFIAPI efi_create_event_ex(uint32_t type, efi_uintn_t notify_tpl,
|
|||
struct efi_event *event,
|
||||
void *context),
|
||||
void *notify_context,
|
||||
efi_guid_t *event_group,
|
||||
const efi_guid_t *event_group,
|
||||
struct efi_event **event)
|
||||
{
|
||||
efi_status_t ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue