diff options
author | Topi Miettinen <topimiettinen@users.noreply.github.com> | 2019-01-15 09:12:28 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-01-15 08:12:28 +0100 |
commit | a1e92eee3e928e33942b35f308621af0d43e91c8 (patch) | |
tree | 7fa341b06dc2c64a1e318e661939c6f98dedbad4 /src/boot/efi/linux.c | |
parent | 1c8e48f50661504e6b74a0eeaa3336f54e1e4238 (diff) | |
download | systemd-a1e92eee3e928e33942b35f308621af0d43e91c8.tar.gz |
Remove 'inline' attributes from static functions in .c files (#11426)
Let the compiler perform inlining (see #11397).
Diffstat (limited to 'src/boot/efi/linux.c')
-rw-r--r-- | src/boot/efi/linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/linux.c b/src/boot/efi/linux.c index d1605523d8..5b4c085880 100644 --- a/src/boot/efi/linux.c +++ b/src/boot/efi/linux.c @@ -52,7 +52,7 @@ struct SetupHeader { #ifdef __x86_64__ typedef VOID(*handover_f)(VOID *image, EFI_SYSTEM_TABLE *table, struct SetupHeader *setup); -static inline VOID linux_efi_handover(EFI_HANDLE image, struct SetupHeader *setup) { +static VOID linux_efi_handover(EFI_HANDLE image, struct SetupHeader *setup) { handover_f handover; asm volatile ("cli"); @@ -61,7 +61,7 @@ static inline VOID linux_efi_handover(EFI_HANDLE image, struct SetupHeader *setu } #else typedef VOID(*handover_f)(VOID *image, EFI_SYSTEM_TABLE *table, struct SetupHeader *setup) __attribute__((regparm(0))); -static inline VOID linux_efi_handover(EFI_HANDLE image, struct SetupHeader *setup) { +static VOID linux_efi_handover(EFI_HANDLE image, struct SetupHeader *setup) { handover_f handover; handover = (handover_f)((UINTN)setup->code32_start + setup->handover_offset); |