Skip to content

Commit db14655

Browse files
committed
efi: libstub: Give efi_main() asmlinkage qualification
To stop the bots from sending sparse warnings to me and the list about efi_main() not having a prototype, decorate it with asmlinkage so that it is clear that it is called from assembly, and therefore needs to remain external, even if it is never declared in a header file. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
1 parent 8a254d9 commit db14655

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/firmware/efi/libstub/x86-stub.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,9 @@ static efi_status_t exit_boot(struct boot_params *boot_params, void *handle)
765765
* relocated by efi_relocate_kernel.
766766
* On failure, we exit to the firmware via efi_exit instead of returning.
767767
*/
768-
unsigned long efi_main(efi_handle_t handle,
769-
efi_system_table_t *sys_table_arg,
770-
struct boot_params *boot_params)
768+
asmlinkage unsigned long efi_main(efi_handle_t handle,
769+
efi_system_table_t *sys_table_arg,
770+
struct boot_params *boot_params)
771771
{
772772
unsigned long bzimage_addr = (unsigned long)startup_32;
773773
unsigned long buffer_start, buffer_end;

0 commit comments

Comments
 (0)