mirror of https://github.com/acidanthera/audk.git
Fix GCC build fail issue for MdeModulePkg and NetworkPkg.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Ouyang Qian <qian.ouyang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14007 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
23fe74dc76
commit
1f7eb561d9
|
@ -677,7 +677,7 @@ EFI_STATUS
|
||||||
(EFIAPI *NET_DESTROY_LINK_LIST_CALLBACK) (
|
(EFIAPI *NET_DESTROY_LINK_LIST_CALLBACK) (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context OPTIONAL
|
IN VOID *Context OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Safe destroy nodes in a linked list, and return the length of the list after all possible operations finished.
|
Safe destroy nodes in a linked list, and return the length of the list after all possible operations finished.
|
||||||
|
@ -708,7 +708,7 @@ NetDestroyLinkList (
|
||||||
IN NET_DESTROY_LINK_LIST_CALLBACK CallBack,
|
IN NET_DESTROY_LINK_LIST_CALLBACK CallBack,
|
||||||
IN VOID *Context, OPTIONAL
|
IN VOID *Context, OPTIONAL
|
||||||
OUT UINTN *ListLength OPTIONAL
|
OUT UINTN *ListLength OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This function checks the input Handle to see if it's one of these handles in ChildHandleBuffer.
|
This function checks the input Handle to see if it's one of these handles in ChildHandleBuffer.
|
||||||
|
@ -723,11 +723,12 @@ NetDestroyLinkList (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
|
EFIAPI
|
||||||
NetIsInHandleBuffer (
|
NetIsInHandleBuffer (
|
||||||
IN EFI_HANDLE Handle,
|
IN EFI_HANDLE Handle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer OPTIONAL
|
IN EFI_HANDLE *ChildHandleBuffer OPTIONAL
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Object container: EFI network stack spec defines various kinds of
|
// Object container: EFI network stack spec defines various kinds of
|
||||||
|
|
|
@ -1095,7 +1095,7 @@ NetDestroyLinkList (
|
||||||
IN NET_DESTROY_LINK_LIST_CALLBACK CallBack,
|
IN NET_DESTROY_LINK_LIST_CALLBACK CallBack,
|
||||||
IN VOID *Context, OPTIONAL
|
IN VOID *Context, OPTIONAL
|
||||||
OUT UINTN *ListLength OPTIONAL
|
OUT UINTN *ListLength OPTIONAL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN PreviousLength;
|
UINTN PreviousLength;
|
||||||
LIST_ENTRY *Entry;
|
LIST_ENTRY *Entry;
|
||||||
|
@ -1158,7 +1158,7 @@ NetIsInHandleBuffer (
|
||||||
IN EFI_HANDLE Handle,
|
IN EFI_HANDLE Handle,
|
||||||
IN UINTN NumberOfChildren,
|
IN UINTN NumberOfChildren,
|
||||||
IN EFI_HANDLE *ChildHandleBuffer OPTIONAL
|
IN EFI_HANDLE *ChildHandleBuffer OPTIONAL
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
|
|
||||||
|
|
|
@ -252,10 +252,11 @@ ArpCleanService (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
ArpDestroyChildEntryInHandleBuffer (
|
ArpDestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ARP_INSTANCE_DATA *Instance;
|
ARP_INSTANCE_DATA *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -364,10 +364,11 @@ ON_ERROR:
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Dhcp4DestroyChildEntry (
|
Dhcp4DestroyChildEntry (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DHCP_PROTOCOL *Instance;
|
DHCP_PROTOCOL *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -406,10 +406,11 @@ Ip4CleanService (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Ip4DestroyChildEntryInHandleBuffer (
|
Ip4DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
IP4_PROTOCOL *IpInstance;
|
IP4_PROTOCOL *IpInstance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -696,10 +696,11 @@ MnpDestroyServiceData (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
MnpDestoryChildEntry (
|
MnpDestoryChildEntry (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
MNP_INSTANCE_DATA *Instance;
|
MNP_INSTANCE_DATA *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -37,10 +37,11 @@ EFI_DRIVER_BINDING_PROTOCOL gMnpDriverBinding = {
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
MnpDestroyServiceDataEntry (
|
MnpDestroyServiceDataEntry (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
MNP_SERVICE_DATA *MnpServiceData;
|
MNP_SERVICE_DATA *MnpServiceData;
|
||||||
|
|
||||||
|
@ -59,10 +60,11 @@ MnpDestroyServiceDataEntry (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
MnpDestroyServiceChildEntry (
|
MnpDestroyServiceChildEntry (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
MNP_SERVICE_DATA *MnpServiceData;
|
MNP_SERVICE_DATA *MnpServiceData;
|
||||||
|
|
||||||
|
|
|
@ -328,10 +328,11 @@ ON_ERROR:
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Mtftp4DestroyChildEntryInHandleBuffer (
|
Mtftp4DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
MTFTP4_PROTOCOL *Instance;
|
MTFTP4_PROTOCOL *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/UdpIoLib.h>
|
#include <Library/UdpIoLib.h>
|
||||||
#include <LIbrary/PrintLib.h>
|
#include <Library/PrintLib.h>
|
||||||
|
|
||||||
extern EFI_MTFTP4_PROTOCOL gMtftp4ProtocolTemplate;
|
extern EFI_MTFTP4_PROTOCOL gMtftp4ProtocolTemplate;
|
||||||
|
|
||||||
|
|
|
@ -147,10 +147,11 @@ Tcp4DestroyTimer (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Tcp4DestroyChildEntryInHandleBuffer (
|
Tcp4DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SOCKET *Sock;
|
SOCKET *Sock;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -39,10 +39,11 @@ EFI_SERVICE_BINDING_PROTOCOL mUdp4ServiceBinding = {
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Udp4DestroyChildEntryInHandleBuffer (
|
Udp4DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UDP4_INSTANCE_DATA *Instance;
|
UDP4_INSTANCE_DATA *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -337,10 +337,11 @@ Dhcp6CreateInstance (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Dhcp6DestroyChildEntry (
|
Dhcp6DestroyChildEntry (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
DHCP6_INSTANCE *Instance;
|
DHCP6_INSTANCE *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -339,10 +339,11 @@ Ip6AddAddr (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Ip6DestroyChildEntryByAddr (
|
Ip6DestroyChildEntryByAddr (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
IP6_PROTOCOL *Instance;
|
IP6_PROTOCOL *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -584,10 +584,11 @@ Ip6DriverBindingStart (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Ip6DestroyChildEntryInHandleBuffer (
|
Ip6DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
IP6_PROTOCOL *IpInstance;
|
IP6_PROTOCOL *IpInstance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -247,10 +247,11 @@ Mtftp6CreateInstance (
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Mtftp6DestroyChildEntryInHandleBuffer (
|
Mtftp6DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
MTFTP6_INSTANCE *Instance;
|
MTFTP6_INSTANCE *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -342,10 +342,11 @@ ON_ERROR:
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
TcpDestroyChildEntryInHandleBuffer (
|
TcpDestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SOCKET *Sock;
|
SOCKET *Sock;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
|
@ -189,10 +189,11 @@ EXIT:
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
EFIAPI
|
||||||
Udp6DestroyChildEntryInHandleBuffer (
|
Udp6DestroyChildEntryInHandleBuffer (
|
||||||
IN LIST_ENTRY *Entry,
|
IN LIST_ENTRY *Entry,
|
||||||
IN VOID *Context
|
IN VOID *Context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UDP6_INSTANCE_DATA *Instance;
|
UDP6_INSTANCE_DATA *Instance;
|
||||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||||
|
|
Loading…
Reference in New Issue