mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +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
|
@ -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
Add a link
Reference in a new issue