efi/libstub: Move the function prototypes to header file
authorAtish Patra <atish.patra@wdc.com>
Mon, 6 Jul 2020 17:25:59 +0000 (10:25 -0700)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 9 Jul 2020 06:45:09 +0000 (09:45 +0300)
commit3230d95cea0515a6acf3f5ff360663de4c40fd07
tree1e43a7eb5fc613be93712144bc81d7a8ac71243a
parent950accbabd4cfa83519fa920f99428bcc131c3c9
efi/libstub: Move the function prototypes to header file

The prototype of the functions handle_kernel_image & efi_enter_kernel
are defined in efi-stub.c which may result in a compiler warnings if
-Wmissing-prototypes is set in gcc compiler.

Move the prototype to efistub.h to make the compiler happy.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Link: https://lore.kernel.org/r/20200706172609.25965-2-atish.patra@wdc.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub.c
drivers/firmware/efi/libstub/efistub.h