]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9fbc4f0bf81f80b37f32914dfd9aa6349f59181
tree1e43a7eb5fc613be93712144bc81d7a8ac71243a
parentefd7aa98397aae620db0728c4712da53885b89ce
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