[syslinux:firmware] efi: provide prototype for load_env32()

syslinux-bot for Matt Fleming matt.fleming at intel.com
Thu Jun 20 06:51:29 PDT 2013


Commit-ID:  937d5256228cd9acc1ff7261303854599d2a1454
Gitweb:     http://www.syslinux.org/commit/937d5256228cd9acc1ff7261303854599d2a1454
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Thu, 20 Jun 2013 14:25:53 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Thu, 20 Jun 2013 14:25:53 +0100

efi: provide prototype for load_env32()

To get rid of the following GCC warning,

efi/main.c:1237:2: warning: implicit declaration of function ‘load_env32’ [-Wimplicit-function-declaration]

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 core/include/core.h | 2 ++
 efi/main.c          | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/core/include/core.h b/core/include/core.h
index 3a63aac..5736d39 100644
--- a/core/include/core.h
+++ b/core/include/core.h
@@ -129,4 +129,6 @@ extern void dmi_init(void);
 
 extern void do_sysappend(char *buf);
 
+extern void load_env32(com32sys_t *regs);
+
 #endif /* CORE_H */
diff --git a/efi/main.c b/efi/main.c
index cc26457..5d71b39 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -1235,7 +1235,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *table)
 		status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key);
 	} while (status != EFI_NOT_READY);
 
-	load_env32();
+	load_env32(NULL);
 
 	/* load_env32() failed.. cancel timer and bailout */
 	status = cancel_timer(timer_ev);


More information about the Syslinux-commits mailing list