efi_console: use EFIAPI for callback functions
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Thu, 20 Jul 2017 03:26:07 +0000 (05:26 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 24 Jul 2017 12:48:09 +0000 (14:48 +0200)
The call to efi_create_event requires notification functions
flagged as EFIAPI.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_console.c

index dbe98ac..95e6323 100644 (file)
@@ -429,11 +429,12 @@ struct efi_simple_input_interface efi_con_in = {
 
 static struct efi_event *console_timer_event;
 
-static void efi_key_notify(struct efi_event *event, void *context)
+static void EFIAPI efi_key_notify(struct efi_event *event, void *context)
 {
 }
 
-static void efi_console_timer_notify(struct efi_event *event, void *context)
+static void EFIAPI efi_console_timer_notify(struct efi_event *event,
+                                           void *context)
 {
        EFI_ENTRY("%p, %p", event, context);
        if (tstc())