EmbeddedPkg: Add missing EFIAPI for protocol member functions

According to UEFI spec calling conventions, protocol member functions
should use EFIAPI.

Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>
This commit is contained in:
Qihang Gao 2026-05-09 11:34:22 +08:00 committed by mergify[bot]
parent 708339afd7
commit 4a96a36c58
2 changed files with 8 additions and 4 deletions

View file

@ -292,6 +292,7 @@ ConnectionAccepted (
start waiting for a TCP connection on the Fastboot port.
*/
EFI_STATUS
EFIAPI
TcpFastbootTransportStart (
EFI_EVENT ReceiveEvent
)
@ -466,6 +467,7 @@ TcpFastbootTransportStart (
}
EFI_STATUS
EFIAPI
TcpFastbootTransportStop (
VOID
)
@ -558,6 +560,7 @@ DataSent (
}
EFI_STATUS
EFIAPI
TcpFastbootTransportSend (
IN UINTN BufferSize,
IN CONST VOID *Buffer,
@ -603,6 +606,7 @@ TcpFastbootTransportSend (
}
EFI_STATUS
EFIAPI
TcpFastbootTransportReceive (
OUT UINTN *BufferSize,
OUT VOID **Buffer

View file

@ -42,7 +42,7 @@ extern EFI_GUID gAndroidFastbootTransportProtocolGuid;
*/
typedef
EFI_STATUS
(*FASTBOOT_TRANSPORT_START) (
(EFIAPI *FASTBOOT_TRANSPORT_START)(
IN EFI_EVENT ReceiveEvent
);
@ -60,7 +60,7 @@ EFI_STATUS
*/
typedef
EFI_STATUS
(*FASTBOOT_TRANSPORT_STOP) (
(EFIAPI *FASTBOOT_TRANSPORT_STOP)(
VOID
);
@ -85,7 +85,7 @@ EFI_STATUS
*/
typedef
EFI_STATUS
(*FASTBOOT_TRANSPORT_SEND) (
(EFIAPI *FASTBOOT_TRANSPORT_SEND)(
IN UINTN BufferSize,
IN CONST VOID *Buffer,
IN EFI_EVENT *FatalErrorEvent
@ -110,7 +110,7 @@ EFI_STATUS
*/
typedef
EFI_STATUS
(*FASTBOOT_TRANSPORT_RECEIVE) (
(EFIAPI *FASTBOOT_TRANSPORT_RECEIVE)(
OUT UINTN *BufferSize,
OUT VOID **Buffer
);