mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
efi_loader: wrong type in wait_for_event
The UEFI spec defines parameter index of WaitForEvent as UINTN*. So we should use size_t here. I deliberately do not use UINTN because I hold a following patch that will eliminate UINTN because uppercase types to not match the U-Boot coding style. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
5a9682d0dd
commit
ca379e1bf1
@@ -71,7 +71,7 @@ struct efi_boot_services {
|
|||||||
enum efi_timer_delay type,
|
enum efi_timer_delay type,
|
||||||
uint64_t trigger_time);
|
uint64_t trigger_time);
|
||||||
efi_status_t (EFIAPI *wait_for_event)(unsigned long number_of_events,
|
efi_status_t (EFIAPI *wait_for_event)(unsigned long number_of_events,
|
||||||
struct efi_event **event, unsigned long *index);
|
struct efi_event **event, size_t *index);
|
||||||
efi_status_t (EFIAPI *signal_event)(struct efi_event *event);
|
efi_status_t (EFIAPI *signal_event)(struct efi_event *event);
|
||||||
efi_status_t (EFIAPI *close_event)(struct efi_event *event);
|
efi_status_t (EFIAPI *close_event)(struct efi_event *event);
|
||||||
efi_status_t (EFIAPI *check_event)(struct efi_event *event);
|
efi_status_t (EFIAPI *check_event)(struct efi_event *event);
|
||||||
|
@@ -553,7 +553,7 @@ static efi_status_t EFIAPI efi_set_timer_ext(struct efi_event *event,
|
|||||||
*/
|
*/
|
||||||
static efi_status_t EFIAPI efi_wait_for_event(unsigned long num_events,
|
static efi_status_t EFIAPI efi_wait_for_event(unsigned long num_events,
|
||||||
struct efi_event **event,
|
struct efi_event **event,
|
||||||
unsigned long *index)
|
size_t *index)
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
|
@@ -108,7 +108,7 @@ static int teardown(void)
|
|||||||
*/
|
*/
|
||||||
static int execute(void)
|
static int execute(void)
|
||||||
{
|
{
|
||||||
unsigned long index;
|
size_t index;
|
||||||
efi_status_t ret;
|
efi_status_t ret;
|
||||||
|
|
||||||
/* Set 10 ms timer */
|
/* Set 10 ms timer */
|
||||||
|
@@ -110,7 +110,7 @@ static int teardown(void)
|
|||||||
*/
|
*/
|
||||||
static int execute(void)
|
static int execute(void)
|
||||||
{
|
{
|
||||||
unsigned long index;
|
size_t index;
|
||||||
efi_status_t ret;
|
efi_status_t ret;
|
||||||
UINTN old_tpl;
|
UINTN old_tpl;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user