diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2019-10-16 09:21:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-18 13:56:31 +0200 |
commit | c64a4a4ccf9bc60385f9c3ba07886d7024503444 (patch) | |
tree | 4b0380fd3cba8870e72aa4c0daa5face0940fe75 /common/efi/efi.c | |
parent | f51c1cec2581aab869ab4fba313898fc2f436f77 (diff) | |
download | barebox-c64a4a4ccf9bc60385f9c3ba07886d7024503444.tar.gz barebox-c64a4a4ccf9bc60385f9c3ba07886d7024503444.tar.xz |
efi: silence warning about un-prototyped assembly-called functions
Both _relocate and efi_main are only called from assembly, but
-Wmissing-prototypes doesn't know that and warns about them.
Pre-declare prototypes to silence the warnings.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/efi/efi.c')
-rw-r--r-- | common/efi/efi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/efi/efi.c b/common/efi/efi.c index a7b25cbbe2..73cea37036 100644 --- a/common/efi/efi.c +++ b/common/efi/efi.c @@ -17,6 +17,7 @@ * */ +#include <linux/linkage.h> #include <common.h> #include <linux/sizes.h> #include <memory.h> @@ -318,6 +319,8 @@ static int efi_init(void) } device_initcall(efi_init); +asmlinkage efi_status_t efi_main(efi_handle_t, efi_system_table_t *); + /** * efi-main - Entry point for EFI images */ |