diff options
Diffstat (limited to 'MdeModulePkg/Universal')
75 files changed, 88 insertions, 385 deletions
diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c index 91b540a399..dacef61d45 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitter.c @@ -32,7 +32,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. //
// Template for Text In Splitter
//
-STATIC TEXT_IN_SPLITTER_PRIVATE_DATA mConIn = {
+TEXT_IN_SPLITTER_PRIVATE_DATA mConIn = {
TEXT_IN_SPLITTER_PRIVATE_DATA_SIGNATURE,
(EFI_HANDLE) NULL,
{
@@ -139,7 +139,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_GRAPHICS_OUTPUT_PROTOCOL mGraphicsOutputProtoc //
// Template for Text Out Splitter
//
-STATIC TEXT_OUT_SPLITTER_PRIVATE_DATA mConOut = {
+TEXT_OUT_SPLITTER_PRIVATE_DATA mConOut = {
TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE,
(EFI_HANDLE) NULL,
{
@@ -206,7 +206,7 @@ STATIC TEXT_OUT_SPLITTER_PRIVATE_DATA mConOut = { //
// Template for Standard Error Text Out Splitter
//
-STATIC TEXT_OUT_SPLITTER_PRIVATE_DATA mStdErr = {
+TEXT_OUT_SPLITTER_PRIVATE_DATA mStdErr = {
TEXT_OUT_SPLITTER_PRIVATE_DATA_SIGNATURE,
(EFI_HANDLE) NULL,
{
diff --git a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c index a9e71fe17e..bb80120d38 100644 --- a/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c +++ b/MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterGraphics.c @@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "ConSplitter.h"
-STATIC CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL };
+CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL };
/**
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index b4ed7b91fd..a57265ebd2 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -94,7 +94,7 @@ CheckModeSupported ( //
// Graphics Console Devcie Private Data template
//
-STATIC GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate = {
+GRAPHICS_CONSOLE_DEV mGraphicsConsoleDevTemplate = {
GRAPHICS_CONSOLE_DEV_SIGNATURE,
(EFI_GRAPHICS_OUTPUT_PROTOCOL *) NULL,
(EFI_UGA_DRAW_PROTOCOL *) NULL,
@@ -132,11 +132,11 @@ EFI_HII_DATABASE_PROTOCOL *mHiiDatabase; EFI_HII_FONT_PROTOCOL *mHiiFont;
BOOLEAN mFirstAccessFlag = TRUE;
-STATIC EFI_GUID mFontPackageListGuid = {0xf5f219d3, 0x7006, 0x4648, 0xac, 0x8d, 0xd6, 0x1d, 0xfb, 0x7b, 0xc6, 0xad};
+EFI_GUID mFontPackageListGuid = {0xf5f219d3, 0x7006, 0x4648, 0xac, 0x8d, 0xd6, 0x1d, 0xfb, 0x7b, 0xc6, 0xad};
-STATIC CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL };
+CHAR16 mCrLfString[3] = { CHAR_CARRIAGE_RETURN, CHAR_LINEFEED, CHAR_NULL };
-STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
+EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
//
// B G R
//
@@ -158,13 +158,13 @@ STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = { {0xff, 0xff, 0xff, 0x00} // WHITE
};
-STATIC EFI_NARROW_GLYPH mCursorGlyph = {
+EFI_NARROW_GLYPH mCursorGlyph = {
0x0000,
0x00,
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF }
};
-STATIC CHAR16 SpaceStr[] = { NARROW_CHAR, ' ', 0 };
+CHAR16 SpaceStr[] = { NARROW_CHAR, ' ', 0 };
EFI_DRIVER_BINDING_PROTOCOL gGraphicsConsoleDriverBinding = {
GraphicsConsoleControllerDriverSupported,
diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c index daa40d894a..e0c2489733 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/TerminalConOut.c @@ -20,7 +20,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // ASCII. The ASCII mapping we just made up.
//
//
-STATIC UNICODE_TO_CHAR UnicodeToPcAnsiOrAscii[] = {
+UNICODE_TO_CHAR UnicodeToPcAnsiOrAscii[] = {
{ BOXDRAW_HORIZONTAL, 0xc4, L'-' },
{ BOXDRAW_VERTICAL, 0xb3, L'|' },
{ BOXDRAW_DOWN_RIGHT, 0xda, L'/' },
@@ -78,10 +78,10 @@ STATIC UNICODE_TO_CHAR UnicodeToPcAnsiOrAscii[] = { { 0x0000, 0x00, L'\0' }
};
-STATIC CHAR16 mSetModeString[] = { ESC, '[', '=', '3', 'h', 0 };
-STATIC CHAR16 mSetAttributeString[] = { ESC, '[', '0', 'm', ESC, '[', '4', '0', 'm', ESC, '[', '4', '0', 'm', 0 };
-STATIC CHAR16 mClearScreenString[] = { ESC, '[', '2', 'J', 0 };
-STATIC CHAR16 mSetCursorPositionString[] = { ESC, '[', '0', '0', ';', '0', '0', 'H', 0 };
+CHAR16 mSetModeString[] = { ESC, '[', '=', '3', 'h', 0 };
+CHAR16 mSetAttributeString[] = { ESC, '[', '0', 'm', ESC, '[', '4', '0', 'm', ESC, '[', '4', '0', 'm', 0 };
+CHAR16 mClearScreenString[] = { ESC, '[', '2', 'J', 0 };
+CHAR16 mSetCursorPositionString[] = { ESC, '[', '0', '0', ';', '0', '0', 'H', 0 };
//
// Body of the ConOut functions
diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c index 914a8c703c..e5844dc9fa 100644 --- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c +++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.c @@ -21,7 +21,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. //
// Misc. functions local to this module..
//
-STATIC
VOID
GetDebugPortVariable (
DEBUGPORT_DEVICE *DebugPortDevice
diff --git a/MdeModulePkg/Universal/DebugSupportDxe/Ia32/plDebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/Ia32/plDebugSupport.c index d7f254b15f..a148842b40 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/Ia32/plDebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/Ia32/plDebugSupport.c @@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. IDT_ENTRY *IdtEntryTable = NULL;
DESCRIPTOR NullDesc = 0;
-STATIC
EFI_STATUS
CreateEntryStub (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -74,7 +73,6 @@ Returns: return EFI_SUCCESS;
}
-STATIC
EFI_STATUS
HookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -120,7 +118,6 @@ Returns: return Status;
}
-STATIC
EFI_STATUS
UnhookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType
diff --git a/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c index 33233d68e5..7b6e75dc4a 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/Ipf/plDebugSupport.c @@ -33,7 +33,6 @@ typedef struct { VOID (*RegisteredCallback) ();
} IVT_ENTRY;
-STATIC
EFI_STATUS
ManageIvtEntryTable (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -41,7 +40,6 @@ ManageIvtEntryTable ( IN VOID (*NewCallback) ()
);
-STATIC
VOID
HookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -49,25 +47,21 @@ HookEntry ( IN VOID (*NewCallback) ()
);
-STATIC
VOID
UnhookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType
);
-STATIC
VOID
ChainExternalInterrupt (
IN VOID (*NewCallback) ()
);
-STATIC
VOID
UnchainExternalInterrupt (
VOID
);
-STATIC
VOID
GetHandlerEntryPoint (
UINTN HandlerIndex,
@@ -162,7 +156,7 @@ Returns: --*/
{
- static BOOLEAN InHandler = FALSE;
+ STATIC BOOLEAN InHandler = FALSE;
DEBUG_CODE_BEGIN ();
if (InHandler) {
@@ -195,7 +189,6 @@ Returns: InHandler = FALSE;
}
-STATIC
VOID
GetHandlerEntryPoint (
UINTN HandlerIndex,
@@ -238,7 +231,6 @@ Returns: *EntryPoint = (VOID *) TempPtr;
}
-STATIC
EFI_STATUS
ManageIvtEntryTable (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -321,7 +313,6 @@ Returns: return EFI_SUCCESS;
}
-STATIC
VOID
HookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -376,7 +367,6 @@ Returns: IvtEntryTable[ExceptionType].RegisteredCallback = NewCallback;
}
-STATIC
VOID
UnhookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType
@@ -414,7 +404,6 @@ Returns: InstructionCacheFlush (B0Ptr, 5);
}
-STATIC
VOID
ChainExternalInterrupt (
IN VOID (*NewCallback) ()
@@ -442,7 +431,6 @@ Returns: InstructionCacheFlush (Start, 0x400);
}
-STATIC
VOID
UnchainExternalInterrupt (
VOID
diff --git a/MdeModulePkg/Universal/DebugSupportDxe/X64/plDebugSupport.c b/MdeModulePkg/Universal/DebugSupportDxe/X64/plDebugSupport.c index 8b907ee6e1..983a01305a 100644 --- a/MdeModulePkg/Universal/DebugSupportDxe/X64/plDebugSupport.c +++ b/MdeModulePkg/Universal/DebugSupportDxe/X64/plDebugSupport.c @@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. IDT_ENTRY *IdtEntryTable = NULL;
DESCRIPTOR NullDesc = {0, 0};
-STATIC
EFI_STATUS
CreateEntryStub (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -72,7 +71,6 @@ Returns: return EFI_SUCCESS;
}
-STATIC
EFI_STATUS
HookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType,
@@ -119,7 +117,6 @@ Returns: return Status;
}
-STATIC
EFI_STATUS
UnhookEntry (
IN EFI_EXCEPTION_TYPE ExceptionType
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c index dcb56504dc..2a6ec0dfec 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c @@ -19,7 +19,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. //
// Global variables
//
-STATIC EFI_GUID mHiiDatabaseNotifyGuid = HII_DATABASE_NOTIFY_GUID;
+EFI_GUID mHiiDatabaseNotifyGuid = HII_DATABASE_NOTIFY_GUID;
/**
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c index e3444148d9..a9d9571f83 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c @@ -16,7 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "HiiDatabase.h"
-STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
+EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {
//
// B G R
//
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c b/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c index 791269e899..827109c4b8 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c @@ -30,9 +30,9 @@ Revision History // Global variables
//
EFI_EVENT gHiiKeyboardLayoutChanged;
-STATIC EFI_GUID gHiiSetKbdLayoutEventGuid = EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID;
+EFI_GUID gHiiSetKbdLayoutEventGuid = EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID;
-STATIC HII_DATABASE_PRIVATE_DATA mPrivate = {
+HII_DATABASE_PRIVATE_DATA mPrivate = {
HII_DATABASE_PRIVATE_DATA_SIGNATURE,
{
(LIST_ENTRY *) NULL,
diff --git a/MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTest.c b/MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTest.c index df6b95547b..a0179be4de 100644 --- a/MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTest.c +++ b/MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTest.c @@ -15,9 +15,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <BaseMemoryTest.h>
#include <Library/PeiServicesLib.h>
-static PEI_BASE_MEMORY_TEST_PPI mPeiBaseMemoryTestPpi = { BaseMemoryTest };
+PEI_BASE_MEMORY_TEST_PPI mPeiBaseMemoryTestPpi = { BaseMemoryTest };
-static EFI_PEI_PPI_DESCRIPTOR PpiListPeiBaseMemoryTest = {
+EFI_PEI_PPI_DESCRIPTOR PpiListPeiBaseMemoryTest = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gPeiBaseMemoryTestPpiGuid,
&mPeiBaseMemoryTestPpi
diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c index b2d2505bd5..1453dfeb1c 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c @@ -27,7 +27,7 @@ Abstract: // to validate a dhcp message. Refere the comments of the
// DHCP_OPTION_FORMAT structure.
//
-STATIC DHCP_OPTION_FORMAT DhcpOptionFormats[] = {
+DHCP_OPTION_FORMAT DhcpOptionFormats[] = {
{DHCP_TAG_NETMASK, DHCP_OPTION_IP, 1, 1 , TRUE},
{DHCP_TAG_TIME_OFFSET, DHCP_OPTION_INT32, 1, 1 , FALSE},
{DHCP_TAG_ROUTER, DHCP_OPTION_IP, 1, -1 , TRUE},
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfig.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfig.c index 4c42a560b7..b70e401637 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfig.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfig.c @@ -42,7 +42,6 @@ LIST_ENTRY mIScsiConfigFormList = { @retval None.
**/
-STATIC
VOID
IScsiIpToStr (
IN EFI_IPv4_ADDRESS *Ip,
@@ -218,7 +217,6 @@ IScsiUpdateDeviceList ( @retval The iSCSI configuration form entry found.
**/
-STATIC
ISCSI_CONFIG_FORM_ENTRY *
IScsiGetConfigFormEntryByIndex (
IN UINT32 Index
@@ -253,7 +251,6 @@ IScsiGetConfigFormEntryByIndex ( @retval None.
**/
-STATIC
VOID
IScsiConvertDeviceConfigDataToIfrNvData (
IN ISCSI_CONFIG_FORM_ENTRY *ConfigFormEntry,
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c index 6b7e83d2ce..ec8d4b2c3c 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDhcp.c @@ -40,7 +40,6 @@ Abstract: @retval EFI_INVALID_PARAMETER The RootPath is mal-formatted.
**/
-STATIC
EFI_STATUS
IScsiDhcpExtractRootPath (
IN CHAR8 *RootPath,
@@ -204,7 +203,6 @@ ON_EXIT: in the Dhcp4Event.
**/
-STATIC
EFI_STATUS
IScsiDhcpSelectOffer (
IN EFI_DHCP4_PROTOCOL * This,
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c index 3c8dac371c..78a1e075f0 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c @@ -30,7 +30,6 @@ Abstract: @retval None.
**/
-STATIC
VOID
IScsiInitIbfTableHeader (
IN EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER *Header
@@ -61,7 +60,6 @@ IScsiInitIbfTableHeader ( @retval None.
**/
-STATIC
VOID
IScsiInitControlSection (
IN EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER *Table,
@@ -106,7 +104,6 @@ IScsiInitControlSection ( @retval None.
**/
-STATIC
VOID
IScsiAddHeapItem (
IN OUT UINT8 **Heap,
@@ -135,7 +132,6 @@ IScsiAddHeapItem ( @retval None.
**/
-STATIC
VOID
IScsiFillInitiatorSection (
IN EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER *Table,
@@ -197,7 +193,6 @@ IScsiFillInitiatorSection ( @retval None.
**/
-STATIC
VOID
IScsiMapV4ToV6Addr (
IN EFI_IPv4_ADDRESS *V4,
@@ -225,7 +220,6 @@ IScsiMapV4ToV6Addr ( @retval UINT16 The composited representation of the NIC PCI location.
**/
-STATIC
UINT16
IScsiGetNICPciLocation (
IN EFI_HANDLE Controller
@@ -279,7 +273,6 @@ IScsiGetNICPciLocation ( @retval EFI_MAC_ADDRESS * The mac address.
**/
-STATIC
EFI_MAC_ADDRESS *
IScsiGetMacAddress (
IN EFI_HANDLE Controller
@@ -312,7 +305,6 @@ IScsiGetMacAddress ( @retval None.
**/
-STATIC
VOID
IScsiFillNICAndTargetSections (
IN EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER *Table,
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c index 4bd72ae25a..53de070a2a 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c @@ -22,7 +22,7 @@ Abstract: #include "IScsiImpl.h"
-STATIC CONST CHAR8 IScsiHexString[] = "0123456789ABCDEFabcdef";
+CONST CHAR8 IScsiHexString[] = "0123456789ABCDEFabcdef";
/**
Removes (trims) specified leading and trailing characters from a string.
@@ -35,7 +35,6 @@ STATIC CONST CHAR8 IScsiHexString[] = "0123456789ABCDEFabcdef"; @retval NONE.
**/
-static
VOID
StrTrim (
IN OUT CHAR16 *str,
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index b88ea1c2f6..7db57506b9 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c @@ -21,7 +21,7 @@ Abstract: #include "IScsiImpl.h"
-static UINT32 mDataSegPad = 0;
+UINT32 mDataSegPad = 0;
/**
Attach the iSCSI connection to the iSCSI session.
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/Md5.c b/MdeModulePkg/Universal/Network/IScsiDxe/Md5.c index b1aa888e24..ee69a98496 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/Md5.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/Md5.c @@ -22,21 +22,21 @@ Abstract: #include "Md5.h"
-STATIC CONST UINT32 MD5_K[][2] = {
+CONST UINT32 MD5_K[][2] = {
{ 0, 1 },
{ 1, 5 },
{ 5, 3 },
{ 0, 7 }
};
-STATIC CONST UINT32 MD5_S[][4] = {
+CONST UINT32 MD5_S[][4] = {
{ 7, 22, 17, 12 },
{ 5, 20, 14, 9 },
{ 4, 23, 16 ,11 },
{ 6, 21, 15, 10 },
};
-STATIC CONST UINT32 MD5_T[] = {
+CONST UINT32 MD5_T[] = {
0xD76AA478, 0xE8C7B756, 0x242070DB, 0xC1BDCEEE,
0xF57C0FAF, 0x4787C62A, 0xA8304613, 0xFD469501,
0x698098D8, 0x8B44F7AF, 0xFFFF5BB1, 0x895CD7BE,
@@ -55,7 +55,7 @@ STATIC CONST UINT32 MD5_T[] = { 0xF7537E82, 0xBD3AF235, 0x2AD7D2BB, 0xEB86D391
};
-STATIC CONST UINT8 Md5HashPadding[] =
+CONST UINT8 Md5HashPadding[] =
{
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -116,7 +116,7 @@ UINT32 IN UINT32 C
);
-STATIC CONST MD5_TRANSFORM_FUNC MD5_F[] = {
+CONST MD5_TRANSFORM_FUNC MD5_F[] = {
TF1,
TF2,
TF3,
@@ -131,7 +131,6 @@ STATIC CONST MD5_TRANSFORM_FUNC MD5_F[] = { @retval NONE.
**/
-STATIC
VOID
MD5Transform (
IN MD5_CTX *Md5Ctx
@@ -188,7 +187,6 @@ MD5Transform ( @retval NONE.
**/
-STATIC
VOID
MD5UpdateBlock (
IN MD5_CTX *Md5Ctx,
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c index 85cc6afb50..e72675a880 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c @@ -121,7 +121,6 @@ Ip4DriverBindingSupported ( return Status;
}
-STATIC
EFI_STATUS
Ip4CleanService (
IN IP4_SERVICE *IpSb
@@ -141,7 +140,6 @@ Ip4CleanService ( @retval EFI_SUCCESS A new IP4 service binding private is created.
**/
-STATIC
EFI_STATUS
Ip4CreateService (
IN EFI_HANDLE Controller,
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Icmp.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Icmp.c index 473449cbcf..74bede7a4b 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Icmp.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Icmp.c @@ -99,7 +99,6 @@ mIp4SupportedIcmp [23] = { @retval EFI_SUCCESS Successfully updated the route caches
**/
-STATIC
EFI_STATUS
Ip4ProcessIcmpRedirect (
IN IP4_SERVICE *IpSb,
@@ -176,7 +175,6 @@ Ip4ProcessIcmpRedirect ( @retval EFI_SUCCESS The ICMP error is processed successfully.
**/
-STATIC
EFI_STATUS
Ip4ProcessIcmpError (
IN IP4_SERVICE *IpSb,
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c index 5e121a5dcf..083876a387 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4If.c @@ -27,16 +27,14 @@ Abstract: // Mac address with all zero, used to determine whethter the ARP
// resolve succeeded. Failed ARP requests zero the MAC address buffer.
//
-STATIC EFI_MAC_ADDRESS mZeroMacAddress;
+EFI_MAC_ADDRESS mZeroMacAddress;
-STATIC
VOID
EFIAPI
Ip4OnFrameSentDpc (
IN VOID *Context
);
-STATIC
VOID
EFIAPI
Ip4OnFrameSent (
@@ -44,14 +42,12 @@ Ip4OnFrameSent ( IN VOID *Context
);
-STATIC
VOID
EFIAPI
Ip4OnArpResolvedDpc (
IN VOID *Context
);
-STATIC
VOID
EFIAPI
Ip4OnArpResolved (
@@ -59,14 +55,12 @@ Ip4OnArpResolved ( IN VOID *Context
);
-STATIC
VOID
EFIAPI
Ip4OnFrameReceivedDpc (
IN VOID *Context
);
-STATIC
VOID
EFIAPI
Ip4OnFrameReceived (
@@ -74,7 +68,6 @@ Ip4OnFrameReceived ( IN VOID *Context
);
-STATIC
VOID
Ip4CancelFrameArp (
IN IP4_ARP_QUE *ArpQue,
@@ -98,7 +91,6 @@ Ip4CancelFrameArp ( @return The wrapped token if succeed or NULL
**/
-STATIC
IP4_LINK_TX_TOKEN *
Ip4WrapLinkTxToken (
IN IP4_INTERFACE *Interface,
@@ -175,7 +167,6 @@ Ip4WrapLinkTxToken ( @return NONE
**/
-STATIC
VOID
Ip4FreeLinkTxToken (
IN IP4_LINK_TX_TOKEN *Token
@@ -198,7 +189,6 @@ Ip4FreeLinkTxToken ( @return Point to newly created IP4_ARP_QUE if succeed, otherwise NULL.
**/
-STATIC
IP4_ARP_QUE *
Ip4CreateArpQue (
IN IP4_INTERFACE *Interface,
@@ -250,7 +240,6 @@ Ip4CreateArpQue ( @return NONE
**/
-STATIC
VOID
Ip4FreeArpQue (
IN IP4_ARP_QUE *ArpQue,
@@ -281,7 +270,6 @@ Ip4FreeArpQue ( @return Point to created IP4_LINK_RX_TOKEN if succeed, otherwise NULL.
**/
-STATIC
IP4_LINK_RX_TOKEN *
Ip4CreateLinkRxToken (
IN IP4_INTERFACE *Interface,
@@ -335,7 +323,6 @@ Ip4CreateLinkRxToken ( @return NONE
**/
-STATIC
VOID
Ip4FreeFrameRxToken (
IN IP4_LINK_RX_TOKEN *Token
@@ -362,7 +349,6 @@ Ip4FreeFrameRxToken ( @return NONE
**/
-STATIC
VOID
Ip4CancelFrameArp (
IN IP4_ARP_QUE *ArpQue,
@@ -638,7 +624,6 @@ ON_ERROR: @retval FALSE The frame doesn't belong to this instance.
**/
-STATIC
BOOLEAN
Ip4CancelInstanceFrame (
IN IP4_LINK_TX_TOKEN *Frame,
@@ -766,7 +751,6 @@ Ip4FreeInterface ( @return None
**/
-STATIC
VOID
EFIAPI
Ip4OnArpResolvedDpc (
@@ -831,7 +815,6 @@ Ip4OnArpResolvedDpc ( Ip4FreeArpQue (ArpQue, EFI_SUCCESS);
}
-STATIC
VOID
EFIAPI
Ip4OnArpResolved (
@@ -872,7 +855,6 @@ Returns: @return None.
**/
-STATIC
VOID
EFIAPI
Ip4OnFrameSentDpc (
@@ -897,7 +879,6 @@ Ip4OnFrameSentDpc ( Ip4FreeLinkTxToken (Token);
}
-STATIC
VOID
EFIAPI
Ip4OnFrameSent (
@@ -1088,7 +1069,6 @@ ON_ERROR: @return None.
**/
-STATIC
VOID
Ip4RecycleFrame (
IN VOID *Context
@@ -1117,7 +1097,6 @@ Ip4RecycleFrame ( @return None.
**/
-STATIC
VOID
EFIAPI
Ip4OnFrameReceivedDpc (
@@ -1175,7 +1154,6 @@ Ip4OnFrameReceivedDpc ( Token->CallBack (Token->IpInstance, Packet, EFI_SUCCESS, Flag, Token->Context);
}
-STATIC
VOID
EFIAPI
Ip4OnFrameReceived (
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c index ce546c235d..0d21280bf7 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c @@ -36,7 +36,6 @@ Abstract: @retval Others Failed to retrieve the IP4 route table.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4GetModeData (
@@ -821,7 +820,6 @@ Ip4StationAddressValid ( @retval EFI_SUCCESS The instance is configured.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Configure (
@@ -1050,7 +1048,6 @@ Ip4Groups ( @retval Otherwise It failed to change the setting.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Groups (
@@ -1112,7 +1109,6 @@ ON_EXIT: @retval Others Failed to modify the route table
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Routes (
@@ -1204,7 +1200,6 @@ ON_EXIT: context.
**/
-STATIC
EFI_STATUS
Ip4TokenExist (
IN NET_MAP *Map,
@@ -1237,7 +1232,6 @@ Ip4TokenExist ( @retval EFI_SUCCESS The token is OK
**/
-STATIC
EFI_STATUS
Ip4TxTokenValid (
IN EFI_IP4_COMPLETION_TOKEN *Token,
@@ -1365,7 +1359,6 @@ Ip4TxTokenValid ( @return None
**/
-STATIC
VOID
Ip4FreeTxToken (
IN VOID *Context
@@ -1411,7 +1404,6 @@ Ip4FreeTxToken ( @return None
**/
-STATIC
VOID
Ip4OnPacketSent (
IP4_PROTOCOL *Ip4Instance,
@@ -1458,7 +1450,6 @@ Ip4OnPacketSent ( for transmission.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Transmit (
@@ -1644,7 +1635,6 @@ ON_EXIT: @retval EFI_SUCCESS The receive request has been issued.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Receive (
@@ -1722,7 +1712,6 @@ ON_EXIT: @retval EFI_ABORTED The user's Token (Token != NULL) is cancelled.
**/
-STATIC
EFI_STATUS
Ip4CancelTxTokens (
IN NET_MAP *Map,
@@ -1778,7 +1767,6 @@ Ip4CancelTxTokens ( cancelled.
**/
-STATIC
EFI_STATUS
Ip4CancelRxTokens (
IN NET_MAP *Map,
@@ -1901,7 +1889,6 @@ Ip4Cancel ( @retval EFI_SUCCESS The Token is cancelled.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Cancel (
@@ -1949,7 +1936,6 @@ ON_EXIT: @retval EFI_NOT_STARTED The IP4 child hasn't been configured.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiIp4Poll (
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c index 9498d056e1..620b6314be 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c @@ -37,7 +37,6 @@ Abstract: @return the point to just created reassemble entry.
**/
-STATIC
IP4_ASSEMBLE_ENTRY *
Ip4CreateAssembleEntry (
IN IP4_ADDR Dst,
@@ -80,7 +79,6 @@ Ip4CreateAssembleEntry ( @return None
**/
-STATIC
VOID
Ip4FreeAssembleEntry (
IN IP4_ASSEMBLE_ENTRY *Assemble
@@ -164,7 +162,6 @@ Ip4CleanAssembleTable ( @return None
**/
-STATIC
VOID
Ip4TrimPacket (
IN NET_BUF *Packet,
@@ -208,7 +205,6 @@ Ip4TrimPacket ( @return None
**/
-STATIC
VOID
Ip4OnFreeFragments (
IN VOID *Arg
@@ -231,7 +227,6 @@ Ip4OnFreeFragments ( @return packet if all the fragments of the packet have arrived.
**/
-STATIC
NET_BUF *
Ip4Reassemble (
IN IP4_ASSEMBLE_TABLE *Table,
@@ -795,7 +790,6 @@ Ip4InstanceEnquePacket ( @return None
**/
-STATIC
VOID
EFIAPI
Ip4OnRecyclePacket (
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c index 1a925cf936..4007a4a930 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c @@ -421,7 +421,6 @@ ON_ERROR: @retval FALSE This is unrelated packet.
**/
-STATIC
BOOLEAN
Ip4CancelPacketFragments (
IP4_LINK_TX_TOKEN *Frame,
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Route.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Route.c index fed1983515..3ab940e184 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Route.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Route.c @@ -34,7 +34,6 @@ Abstract: @return route entry.
**/
-STATIC
IP4_ROUTE_ENTRY *
Ip4CreateRouteEntry (
IN IP4_ADDR Dest,
@@ -70,7 +69,6 @@ Ip4CreateRouteEntry ( @return NONE
**/
-STATIC
VOID
Ip4FreeRouteEntry (
IN IP4_ROUTE_ENTRY *RtEntry
@@ -97,7 +95,6 @@ Ip4FreeRouteEntry ( @return to the created route cache entry.
**/
-STATIC
IP4_ROUTE_CACHE_ENTRY *
Ip4CreateRouteCacheEntry (
IN IP4_ADDR Dst,
@@ -292,7 +289,6 @@ Ip4FreeRouteTable ( @return None
**/
-STATIC
VOID
Ip4PurgeRouteCache (
IN IP4_ROUTE_CACHE *RtCache,
@@ -482,7 +478,6 @@ Ip4FindRouteCache ( @return most specific route to the Dst.
**/
-STATIC
IP4_ROUTE_ENTRY *
Ip4FindRouteEntry (
IN IP4_ROUTE_TABLE *RtTable,
diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c index 2268e6df82..fd03ed5417 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpConfig.c @@ -52,26 +52,22 @@ EFI_MANAGED_NETWORK_CONFIG_DATA mMnpDefaultConfigData = { FALSE
};
-STATIC
EFI_STATUS
MnpAddFreeNbuf (
IN MNP_SERVICE_DATA *MnpServiceData,
IN UINTN Count
);
-STATIC
EFI_STATUS
MnpStartSnp (
IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp
);
-STATIC
EFI_STATUS
MnpStopSnp (
IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp
);
-STATIC
EFI_STATUS
MnpStart (
IN MNP_SERVICE_DATA *MnpServiceData,
@@ -79,19 +75,16 @@ MnpStart ( IN BOOLEAN EnableSystemPoll
);
-STATIC
EFI_STATUS
MnpStop (
IN MNP_SERVICE_DATA *MnpServiceData
);
-STATIC
EFI_STATUS
MnpConfigReceiveFilters (
IN MNP_SERVICE_DATA *MnpServiceData
);
-STATIC
EFI_STATUS
MnpGroupOpAddCtrlBlk (
IN MNP_INSTANCE_DATA *Instance,
@@ -101,7 +94,6 @@ MnpGroupOpAddCtrlBlk ( IN UINT32 HwAddressSize
);
-STATIC
BOOLEAN
MnpGroupOpDelCtrlBlk (
IN MNP_INSTANCE_DATA *Instance,
@@ -121,7 +113,6 @@ MnpGroupOpDelCtrlBlk ( @retval EFI_OUT_OF_RESOURCES Failed to allocate a NET_BUF structure.
**/
-STATIC
EFI_STATUS
MnpAddFreeNbuf (
IN MNP_SERVICE_DATA *MnpServiceData,
@@ -679,7 +670,6 @@ MnpCancelTokens ( @retval Other Some error occurs.
**/
-STATIC
EFI_STATUS
MnpStartSnp (
IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp
@@ -714,7 +704,6 @@ MnpStartSnp ( @retval Other Some error occurs.
**/
-STATIC
EFI_STATUS
MnpStopSnp (
IN EFI_SIMPLE_NETWORK_PROTOCOL *Snp
@@ -754,7 +743,6 @@ MnpStopSnp ( @retval Other Some error occurs.
**/
-STATIC
EFI_STATUS
MnpStart (
IN MNP_SERVICE_DATA *MnpServiceData,
@@ -843,7 +831,6 @@ ErrorExit: @retval Other Some error occurs.
**/
-STATIC
EFI_STATUS
MnpStop (
IN MNP_SERVICE_DATA *MnpServiceData
@@ -1087,7 +1074,6 @@ MnpConfigureInstance ( of memory resource.
**/
-STATIC
EFI_STATUS
MnpConfigReceiveFilters (
IN MNP_SERVICE_DATA *MnpServiceData
@@ -1249,7 +1235,6 @@ MnpConfigReceiveFilters ( @retval EFI_OUT_OF_RESOURCE Failed due to lack of memory resources.
**/
-STATIC
EFI_STATUS
MnpGroupOpAddCtrlBlk (
IN MNP_INSTANCE_DATA *Instance,
@@ -1315,7 +1300,6 @@ MnpGroupOpAddCtrlBlk ( @return The group address controlled by the control block is no longer used or not.
**/
-STATIC
BOOLEAN
MnpGroupOpDelCtrlBlk (
IN MNP_INSTANCE_DATA *Instance,
diff --git a/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c b/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c index fc53f0e8da..13bf552339 100644 --- a/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c +++ b/MdeModulePkg/Universal/Network/MnpDxe/MnpIo.c @@ -405,7 +405,6 @@ MnpInstanceDeliverPacket ( @return None.
**/
-STATIC
VOID
MnpDeliverPacket (
IN MNP_SERVICE_DATA *MnpServiceData
@@ -488,7 +487,6 @@ MnpRecycleRxData ( @return None.
**/
-STATIC
VOID
MnpQueueRcvdPacket (
IN MNP_INSTANCE_DATA *Instance,
@@ -550,7 +548,6 @@ MnpQueueRcvdPacket ( @return The received packet matches the instance's receive filters or not.
**/
-STATIC
BOOLEAN
MnpMatchPacket (
IN MNP_INSTANCE_DATA *Instance,
@@ -632,7 +629,6 @@ MnpMatchPacket ( @return None.
**/
-STATIC
VOID
MnpAnalysePacket (
IN MNP_SERVICE_DATA *MnpServiceData,
@@ -729,7 +725,6 @@ MnpAnalysePacket ( @return Pointer to a MNP_RXDATA_WRAP which wraps the RxData.
**/
-STATIC
MNP_RXDATA_WRAP *
MnpWrapRxData (
IN MNP_INSTANCE_DATA *Instance,
@@ -787,7 +782,6 @@ MnpWrapRxData ( @return None.
**/
-STATIC
VOID
MnpEnqueuePacket (
IN MNP_SERVICE_DATA *MnpServiceData,
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c index a0ec216e07..b31a50209a 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Impl.c @@ -22,7 +22,6 @@ Abstract: #include "Mtftp4Impl.h"
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4ReadFile (
@@ -41,7 +40,6 @@ EfiMtftp4ReadFile ( @retval EFI_SUCCESS The operation parameter is saved in ModeData
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4GetModeData (
@@ -158,7 +156,6 @@ Mtftp4CleanOperation ( @retval EFI_SUCCESS The instance is configured for operation.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4Configure (
@@ -251,7 +248,6 @@ EfiMtftp4Configure ( @retval EFI_ABORTED Abort the ReadFile operation and return.
**/
-STATIC
EFI_STATUS
Mtftp4GetInfoCheckPacket (
IN EFI_MTFTP4_PROTOCOL *This,
@@ -322,7 +318,6 @@ Mtftp4GetInfoCheckPacket ( @retval Others Failed to get the information.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4GetInfo (
@@ -399,7 +394,6 @@ EfiMtftp4GetInfo ( @retval EFI_SUCCESS The packet is parsed.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4ParseOptions (
@@ -444,7 +438,6 @@ EfiMtftp4ParseOptions ( @return TRUE if the override data is valid, otherwise FALSE.
**/
-STATIC
BOOLEAN
Mtftp4OverrideValid (
IN MTFTP4_PROTOCOL *Instance,
@@ -547,7 +540,6 @@ Mtftp4GetMapping ( session to unicast receive.
**/
-STATIC
EFI_STATUS
Mtftp4ConfigUnicastPort (
IN UDP_IO_PORT *UdpIo,
@@ -613,7 +605,6 @@ Mtftp4ConfigUnicastPort ( @retval EFI_SUCCESS The operation is successfully started.
**/
-STATIC
EFI_STATUS
Mtftp4Start (
IN EFI_MTFTP4_PROTOCOL *This,
@@ -801,7 +792,6 @@ ON_ERROR: @retval Others Some error happened.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4ReadFile (
@@ -825,7 +815,6 @@ EfiMtftp4ReadFile ( @retval Others Some error happened.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4WriteFile (
@@ -850,7 +839,6 @@ EfiMtftp4WriteFile ( @retval Others Some error happened.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4ReadDirectory (
@@ -872,7 +860,6 @@ EfiMtftp4ReadDirectory ( @retval EFI_DEVICE_ERROR The MTFTP session has been destoried.
**/
-STATIC
EFI_STATUS
EFIAPI
EfiMtftp4Poll (
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.c index f413c76305..6ae404b22a 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Option.c @@ -44,7 +44,6 @@ CHAR8 *mMtftp4SupportedOptions[MTFTP4_SUPPORTED_OPTIONS] = { @retval EFI_SUCCESS The packet has been parsed into the Options array.
**/
-STATIC
EFI_STATUS
Mtftp4FillOptions (
IN EFI_MTFTP4_PACKET *Packet,
@@ -260,7 +259,6 @@ NetStringToU32 ( @retval EFI_SUCCESS The IP is parsed into the Ip
**/
-STATIC
EFI_STATUS
NetStringToIp (
IN UINT8 *Str,
@@ -317,7 +315,6 @@ NetStringToIp ( @retval EFI_SUCCESS The multicast value is parsed into the Option
**/
-STATIC
EFI_STATUS
Mtftp4ExtractMcast (
IN UINT8 *Value,
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Rrq.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Rrq.c index f226ac0085..93780fb87f 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Rrq.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Rrq.c @@ -371,7 +371,6 @@ Mtftp4RrqOackValid ( @retval Others Failed to configure the UDP child.
**/
-STATIC
EFI_STATUS
Mtftp4RrqConfigMcastPort (
IN UDP_IO_PORT *McastIo,
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.c index b17e31c103..b43f94da62 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.c @@ -33,7 +33,6 @@ Abstract: @return NULL if failed to allocate memory, otherwise the created block range.
**/
-STATIC
MTFTP4_BLOCK_RANGE *
Mtftp4AllocateRange (
IN UINT16 Start,
@@ -372,7 +371,6 @@ Mtftp4SendError ( @return None
**/
-STATIC
VOID
Mtftp4OnPacketSent (
NET_BUF *Packet,
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c index cd0ef4a27b..41d06f6e37 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c @@ -345,7 +345,6 @@ UpdateChecksum ( @retval 1 Callbacks are not active on the handle
**/
-STATIC
BOOLEAN
SetMakeCallback (
IN PXE_BASECODE_DEVICE *Private
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_arp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_arp.c index 59ace83125..45956b16ed 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_arp.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_arp.c @@ -23,10 +23,10 @@ Abstract: // Definitions for ARP
// Per RFC 826
//
-STATIC ARP_HEADER ArpHeader;
+ARP_HEADER ArpHeader;
#pragma pack(1)
-STATIC struct {
+struct {
UINT8 MediaHeader[14];
ARP_HEADER ArpHeader;
UINT8 ArpData[64];
@@ -307,7 +307,6 @@ GetHwAddr ( @return other := ARP request could not be sent
**/
-STATIC
EFI_STATUS
SendRequest (
IN PXE_BASECODE_DEVICE *Private,
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_dhcp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_dhcp.c index a30d8c7f7f..7d8518a2ce 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_dhcp.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_dhcp.c @@ -22,12 +22,12 @@ Abstract: #include "PxeArch.h"
-STATIC EFI_PXE_BASE_CODE_UDP_PORT DhcpServerPort = DHCP_SERVER_PORT;
-STATIC EFI_PXE_BASE_CODE_UDP_PORT DHCPClientPort = DHCP_CLIENT_PORT;
-STATIC EFI_PXE_BASE_CODE_UDP_PORT PseudoDhcpServerPort = PXE_DISCOVERY_PORT;
+EFI_PXE_BASE_CODE_UDP_PORT DhcpServerPort = DHCP_SERVER_PORT;
+EFI_PXE_BASE_CODE_UDP_PORT DHCPClientPort = DHCP_CLIENT_PORT;
+EFI_PXE_BASE_CODE_UDP_PORT PseudoDhcpServerPort = PXE_DISCOVERY_PORT;
#define PSEUDO_DHCP_CLIENT_PORT PseudoDhcpServerPort
-STATIC EFI_IP_ADDRESS BroadcastIP = {{0xffffffff}};
-STATIC EFI_IP_ADDRESS DefaultSubnetMask = {{0xffffff00}};
+EFI_IP_ADDRESS BroadcastIP = {{0xffffffff}};
+EFI_IP_ADDRESS DefaultSubnetMask = {{0xffffff00}};
typedef union {
DHCPV4_OP_STRUCT *OpPtr;
@@ -50,7 +50,7 @@ typedef union { // option structure for DHCPREQUEST at end of DISCOVER options
// and for DHCPDECLINE
//
-STATIC const struct requestopendstr {
+const struct requestopendstr {
DHCPV4_OP_REQUESTED_IP OpReqIP;
DHCPV4_OP_SERVER_IP DhcServerIpPtr;
UINT8 End[1];
@@ -87,7 +87,7 @@ PXE_OP_BOOT_ITEM DefaultBootItem = { //
// PXE discovery control default structure
//
-STATIC PXE_OP_DISCOVERY_CONTROL DefaultDisCtl = {
+PXE_OP_DISCOVERY_CONTROL DefaultDisCtl = {
{ VEND_PXE_DISCOVERY_CONTROL, DHCPV4_OPTION_LENGTH(PXE_OP_DISCOVERY_CONTROL) },
0
};
@@ -120,7 +120,7 @@ typedef struct { // discoveropendstr { // common option beginning for all our DHCP messages except
// DHCPDECLINE and DHCPRELEASE
//
-STATIC struct optionsstr {
+struct optionsstr {
UINT8 DhcpCookie[4];
DHCPV4_OP_MESSAGE_TYPE DhcpMessageType;
DHCPV4_OP_MAX_MESSAGE_SIZE DhcpMaxMessageSize;
@@ -246,7 +246,7 @@ struct opreleasestr { // value 0 -> not of interest, else value is index into PXE OPTION array
// option values from 1 to MAX_OUR_PXE_OPT
//
-STATIC UINT8 ourPXEopts[MAX_OUR_PXE_OPT] = {
+UINT8 ourPXEopts[MAX_OUR_PXE_OPT] = {
VEND_PXE_MTFTP_IP_IX, // multicast IP address of bootfile for MTFTP listen
VEND_PXE_MTFTP_CPORT_IX, // UDP Port to monitor for MTFTP responses - Intel order
VEND_PXE_MTFTP_SPORT_IX, // Server UDP Port for MTFTP open - Intel order
@@ -327,7 +327,7 @@ STATIC UINT8 ourPXEopts[MAX_OUR_PXE_OPT] = { // value 0 -> not of interest, else value is index into OPTION array
// option values from 1 to MAX_OUR_OPT
//
-STATIC UINT8 OurDhcpOptions[MAX_OUR_OPT] = {
+UINT8 OurDhcpOptions[MAX_OUR_OPT] = {
OP_SUBNET_MASK_IX, // OP_SUBNET_MASK 1 // data is the subnet mask
OP_TIME_OFFSET_IX, // OP_TIME_OFFSET 2 // data is the time offset of subnet to UTC in seconds
OP_ROUTER_LIST_IX, // OP_ROUTER_LIST 3 // list of routers on subnet
@@ -527,7 +527,6 @@ PxeBcLibGetSmbiosSystemGuidAndSerialNumber ( //
// add router list to list
//
-STATIC
VOID
Ip4AddRouterList (
PXE_BASECODE_DEVICE *Private,
@@ -553,7 +552,6 @@ Ip4AddRouterList ( //
// send ARP for our IP - fail if someone has it
//
-STATIC
BOOLEAN
SetStationIP (
PXE_BASECODE_DEVICE *Private
@@ -613,7 +611,6 @@ SetStationIP ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
VOID
AddRouters (
PXE_BASECODE_DEVICE *Private,
@@ -627,7 +624,6 @@ AddRouters ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
EFI_STATUS
DoUdpWrite (
PXE_BASECODE_DEVICE *Private,
@@ -665,7 +661,6 @@ typedef struct { UINT8 x[4];
} C4Str;
-STATIC
VOID
InitDhcpv4TxBuf (
PXE_BASECODE_DEVICE *Private
@@ -741,7 +736,6 @@ InitDhcpv4TxBuf ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
UINT32
DecodePxeOptions (
DHCP_RECEIVE_BUFFER *RxBufPtr,
@@ -789,7 +783,6 @@ DecodePxeOptions ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
VOID
DecodeOptions (
DHCP_RECEIVE_BUFFER *RxBufPtr,
@@ -897,7 +890,6 @@ Parse ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
VOID
CopyParseRxBuf (
PXE_BASECODE_DEVICE *Private,
@@ -919,7 +911,6 @@ CopyParseRxBuf ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
VOID
CopyProxyRxBuf (
PXE_BASECODE_DEVICE *Private,
@@ -931,7 +922,6 @@ CopyProxyRxBuf ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
VOID
CopyParse (
PXE_BASECODE_DEVICE *Private,
@@ -1401,7 +1391,6 @@ GetOffers ( //
// send DHCPDECLINE
//
-STATIC
VOID
DeclineOffer (
PXE_BASECODE_DEVICE *Private
@@ -1447,7 +1436,6 @@ DeclineOffer ( //
// send DHCPRELEASE
//
-STATIC
BOOLEAN
Release (
PXE_BASECODE_DEVICE *Private
@@ -1498,7 +1486,6 @@ Release ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
BOOLEAN
GetBINLAck (
PXE_BASECODE_DEVICE *Private,
@@ -1583,7 +1570,6 @@ GetBINLAck ( // make sure we can get BINL
// send DHCPREQUEST to PXE server
//
-STATIC
BOOLEAN
TryBINL (
PXE_BASECODE_DEVICE *Private,
@@ -1672,7 +1658,6 @@ TryBINL ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
BOOLEAN
TryFinishBINL (
PXE_BASECODE_DEVICE *Private,
@@ -1687,7 +1672,6 @@ TryFinishBINL ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
BOOLEAN
TryFinishProxyBINL (
PXE_BASECODE_DEVICE *Private
@@ -1709,7 +1693,6 @@ TryFinishProxyBINL ( //
// try to finish DORA - send DHCP request, wait for ACK, check with ARP
//
-STATIC
BOOLEAN
TryFinishDORA (
PXE_BASECODE_DEVICE *Private,
@@ -1848,7 +1831,6 @@ TryFinishDORA ( //
// try a DHCP server of appropriate type
//
-STATIC
BOOLEAN
TryDHCPFinishDORA (
PXE_BASECODE_DEVICE *Private,
@@ -1878,7 +1860,6 @@ TryDHCPFinishDORA ( //
// try a DHCP only server and a proxy of appropriate type
//
-STATIC
BOOLEAN
TryProxyFinishDORA (
PXE_BASECODE_DEVICE *Private,
@@ -1919,7 +1900,6 @@ TryProxyFinishDORA ( //
// getting to the bottom of the barrel
//
-STATIC
BOOLEAN
TryAnyWithBootfileFinishDORA (
PXE_BASECODE_DEVICE *Private
@@ -1970,7 +1950,6 @@ TryAnyWithBootfileFinishDORA ( /* DoDhcpDora()
*/
-STATIC
EFI_STATUS
DoDhcpDora (
PXE_BASECODE_DEVICE *Private,
@@ -2390,7 +2369,6 @@ BcDhcp ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
BOOLEAN
VerifyCredentialOption (
UINT8 *tx,
@@ -2728,7 +2706,6 @@ DoDiscover ( **/
-STATIC
EFI_STATUS
Discover (
PXE_BASECODE_DEVICE *Private,
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_igmp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_igmp.c index c5088dff32..30d9417677 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_igmp.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_igmp.c @@ -21,11 +21,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // Definitions for internet group management protocol version 2 message
// structure Per RFC 2236, November 1997
//
-STATIC UINT8 RouterAlertOption[4] = { 0x80 | 20, 4, 0, 0 };
-STATIC IPV4_ADDR AllRoutersGroup = { { 224, 0, 0, 2 } };
+UINT8 RouterAlertOption[4] = { 0x80 | 20, 4, 0, 0 };
+IPV4_ADDR AllRoutersGroup = { { 224, 0, 0, 2 } };
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
VOID
ClearGroupTimer (
PXE_BASECODE_DEVICE *Private,
@@ -54,7 +53,6 @@ ClearGroupTimer ( **/
-STATIC
VOID
SetGroupTimer (
PXE_BASECODE_DEVICE *Private,
@@ -107,7 +105,6 @@ SetGroupTimer ( **/
-STATIC
VOID
SendIgmpMessage (
PXE_BASECODE_DEVICE *Private,
@@ -143,7 +140,6 @@ SendIgmpMessage ( **/
-STATIC
VOID
ReportIgmp (
PXE_BASECODE_DEVICE *Private,
@@ -208,7 +204,6 @@ IgmpCheckTimers ( @return other := Group ID#
**/
-STATIC
INTN
FindMulticastGroup (
PXE_BASECODE_DEVICE *Private,
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_ip.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_ip.c index 6330679a8f..e05440d042 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_ip.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_ip.c @@ -119,7 +119,6 @@ IpAddRouter ( //
// return router ip to use for DestIp (0 if none)
//
-STATIC
EFI_IP_ADDRESS *
GetRouterIp (
PXE_BASECODE_DEVICE *Private,
@@ -471,7 +470,6 @@ Ip4Send ( //
// return true if dst IP in receive header matched with what's enabled
//
-STATIC
BOOLEAN
IPgood (
PXE_BASECODE_DEVICE *Private,
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c index 3cd090b4d8..702d5fef34 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c @@ -77,7 +77,6 @@ Swap64 ( @return other :=
**/
-STATIC
EFI_STATUS
TftpUdpRead (
PXE_BASECODE_DEVICE *Private,
@@ -167,7 +166,6 @@ TftpUdpRead ( **/
-STATIC
VOID
SendError (
PXE_BASECODE_DEVICE *Private,
@@ -207,7 +205,6 @@ SendError ( **/
-STATIC
EFI_STATUS
SendAckAndGetData (
PXE_BASECODE_DEVICE *Private,
@@ -336,7 +333,6 @@ SendAckAndGetData ( **/
-STATIC
EFI_STATUS
LockStepReceive (
PXE_BASECODE_DEVICE *Private,
@@ -478,12 +474,12 @@ LockStepReceive ( //
// some literals
//
-STATIC UINT8 Mode[] = MODE_BINARY;
-STATIC UINT8 BlockSizeOp[] = OP_BLKSIZE;
-STATIC UINT8 TsizeOp[] = OP_TFRSIZE;
-STATIC UINT8 OverwriteOp[] = OP_OVERWRITE;
-STATIC UINT8 BigBlkNumOp[] = OP_BIGBLKNUM;
-STATIC EFI_PXE_BASE_CODE_UDP_PORT TftpRequestPort = TFTP_OPEN_PORT;
+UINT8 Mode[] = MODE_BINARY;
+UINT8 BlockSizeOp[] = OP_BLKSIZE;
+UINT8 TsizeOp[] = OP_TFRSIZE;
+UINT8 OverwriteOp[] = OP_OVERWRITE;
+UINT8 BigBlkNumOp[] = OP_BIGBLKNUM;
+EFI_PXE_BASE_CODE_UDP_PORT TftpRequestPort = TFTP_OPEN_PORT;
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
@@ -492,7 +488,6 @@ STATIC EFI_PXE_BASE_CODE_UDP_PORT TftpRequestPort = TFTP_OPEN_PORT; @return Pointer to value field if option found or NULL if not found.
**/
-STATIC
UINT8 *
FindOption (
UINT8 *OptionPtr,
@@ -521,7 +516,6 @@ FindOption ( #define TSIZEOP 2 // transfer size
#define OVERWRITEOP 4 // overwrite
#define BIGBLKNUMOP 8 // big block numbers
-STATIC
EFI_STATUS
TftpRwReq (
UINT16 Req,
@@ -616,7 +610,6 @@ TftpRwReq ( **/
-STATIC
EFI_STATUS
TftpRwReqwResp (
UINT16 Req,
@@ -738,7 +731,6 @@ TftpRwReqwResp ( **/
-STATIC
EFI_STATUS
MtftpListen (
PXE_BASECODE_DEVICE *Private,
@@ -873,7 +865,6 @@ MtftpListen ( @retval GOTUNI returns NO_DATA go will go to TFTP session)
**/
-STATIC
EFI_STATUS
MtftpOpen (
PXE_BASECODE_DEVICE * Private,
@@ -1069,7 +1060,6 @@ MtftpOpen ( **/
-STATIC
EFI_STATUS
MtftpDownload (
PXE_BASECODE_DEVICE *Private,
@@ -1247,7 +1237,6 @@ MtftpDownload ( **/
-STATIC
EFI_STATUS
TftpInfo (
PXE_BASECODE_DEVICE *Private,
@@ -1410,7 +1399,6 @@ TftpInfo ( **/
-STATIC
EFI_STATUS
TftpDownload (
PXE_BASECODE_DEVICE *Private,
@@ -1578,7 +1566,6 @@ TftpDownload ( **/
-STATIC
EFI_STATUS
TftpUpload (
PXE_BASECODE_DEVICE *Private,
diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c index 9c4baef5e7..e2b56097d0 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_loadfile.c @@ -58,7 +58,6 @@ typedef union { -
**/
-STATIC
EFI_PXE_BASE_CODE_CALLBACK_STATUS
EFIAPI
bc_callback (
@@ -149,7 +148,7 @@ bc_callback ( return EFI_PXE_BASE_CODE_CALLBACK_STATUS_CONTINUE;
}
-STATIC EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL _bc_callback = {
+EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL _bc_callback = {
EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL_REVISION,
&bc_callback
};
@@ -163,7 +162,6 @@ STATIC EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL _bc_callback = { @return None
**/
-STATIC
VOID
PrintIpv4 (
UINT8 *Ptr
@@ -183,7 +181,6 @@ PrintIpv4 ( @return None
**/
-STATIC
VOID
ShowMyInfo (
IN PXE_BASECODE_DEVICE *Private
@@ -257,7 +254,6 @@ ShowMyInfo ( @retval LOCAL_BOOT
**/
-STATIC
EFI_STATUS
DoPrompt (
PXE_BASECODE_DEVICE *Private,
@@ -447,7 +443,6 @@ DoPrompt ( @return None
**/
-STATIC
VOID
PrintMenuItem (
PXE_BOOT_MENU_ENTRY *MenuItemPtr
@@ -475,7 +470,6 @@ PrintMenuItem ( @retval LOCAL_BOOT
**/
-STATIC
EFI_STATUS
DoMenu (
PXE_BASECODE_DEVICE *Private,
@@ -765,7 +759,6 @@ DoMenu ( @return Value from DHCP option
**/
-STATIC
UINT16
GetValue (
DHCPV4_OP_STRUCT *OpPtr
@@ -789,7 +782,6 @@ GetValue ( @return Pointer to opcode, may be NULL
**/
-STATIC
UINT8 *
_PxeBcFindOpt (
UINT8 *BufferPtr,
@@ -837,7 +829,6 @@ _PxeBcFindOpt ( @return Pointer to option in packet
**/
-STATIC
UINT8 *
PxeBcFindDhcpOpt (
EFI_PXE_BASE_CODE_PACKET *PacketPtr,
@@ -937,7 +928,6 @@ PxeBcFindDhcpOpt ( @return EFI_PROTOCOL_ERROR -
**/
-STATIC
EFI_STATUS
DownloadFile (
IN PXE_BASECODE_DEVICE *Private,
@@ -1178,7 +1168,6 @@ DownloadFile ( @retval EFI_NOT_READY
**/
-STATIC
EFI_STATUS
LoadfileStart (
IN PXE_BASECODE_DEVICE *Private,
diff --git a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4InitSelect.c b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4InitSelect.c index f6f5fc754c..81d3a7eedd 100644 --- a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4InitSelect.c +++ b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4InitSelect.c @@ -30,7 +30,6 @@ Abstract: /**
**/
-STATIC
INTN
offer_verify (
IN PXE_DHCP4_PRIVATE_DATA *Private,
@@ -146,9 +145,8 @@ offer_verify ( /**
**/
-STATIC
INTN
-acknak_verify (
+acknak_verify_initselect (
IN PXE_DHCP4_PRIVATE_DATA *Private,
IN DHCP4_PACKET *tx_pkt,
IN DHCP4_PACKET *rx_pkt,
@@ -717,7 +715,7 @@ PxeDhcp4Select ( NULL,
&request,
&acknak,
- &acknak_verify,
+ &acknak_verify_initselect,
seconds_timeout
);
diff --git a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4RenewRebind.c b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4RenewRebind.c index 193bb1880a..fb317a50a4 100644 --- a/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4RenewRebind.c +++ b/MdeModulePkg/Universal/Network/PxeDhcp4Dxe/PxeDhcp4RenewRebind.c @@ -31,9 +31,8 @@ Abstract: @return 1 = accept, stop waiting
**/
-STATIC
INTN
-acknak_verify (
+acknak_verify_renewrebind (
IN PXE_DHCP4_PRIVATE_DATA *Private,
IN DHCP4_PACKET *tx_pkt,
IN DHCP4_PACKET *rx_pkt,
@@ -171,7 +170,6 @@ acknak_verify ( }
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
-STATIC
EFI_STATUS
EFIAPI
renew_rebind (
@@ -338,7 +336,7 @@ renew_rebind ( &subnet_mask,
&Request,
&AckNak,
- &acknak_verify,
+ &acknak_verify_renewrebind,
seconds_timeout
);
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Callback.c b/MdeModulePkg/Universal/Network/SnpDxe/Callback.c index fbc2d6687d..6dc9943cf6 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Callback.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Callback.c @@ -22,8 +22,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // them in the snp structure because we will not know which snp structure
// in the callback context!
//
-STATIC BOOLEAN mInitializeLock = TRUE;
-STATIC EFI_LOCK mLock;
+BOOLEAN mInitializeLock = TRUE;
+EFI_LOCK mLock;
//
// End Global variables
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c b/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c index d1fa2627fc..9eaafb932c 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Get_status.c @@ -20,7 +20,6 @@ Revision history: #include "Snp.h"
-STATIC
/**
this routine calls undi to get the status of the interrupts, get the list of
transmit buffers that completed transmitting!
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Mcast_ip_to_mac.c b/MdeModulePkg/Universal/Network/SnpDxe/Mcast_ip_to_mac.c index 91b5e02fc1..6c5bf15e8b 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Mcast_ip_to_mac.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Mcast_ip_to_mac.c @@ -30,7 +30,6 @@ Revision history: **/
-STATIC
EFI_STATUS
pxe_ip2mac (
IN SNP_DRIVER *snp,
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Nvdata.c b/MdeModulePkg/Universal/Network/SnpDxe/Nvdata.c index 7d31d6dcf2..19d43be8bd 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Nvdata.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Nvdata.c @@ -31,7 +31,6 @@ Revision history: **/
-STATIC
EFI_STATUS
pxe_nvdata_read (
IN SNP_DRIVER *snp,
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Receive.c b/MdeModulePkg/Universal/Network/SnpDxe/Receive.c index b6f0c55dde..48c47f15e0 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Receive.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Receive.c @@ -39,7 +39,6 @@ Revision history: **/
-STATIC
EFI_STATUS
pxe_receive (
SNP_DRIVER *snp,
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Receive_filters.c b/MdeModulePkg/Universal/Network/SnpDxe/Receive_filters.c index 3886d2078d..343b516d9e 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Receive_filters.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Receive_filters.c @@ -33,7 +33,6 @@ Revision history: **/
-STATIC
EFI_STATUS
pxe_rcvfilter_enable (
SNP_DRIVER *snp,
@@ -121,7 +120,6 @@ pxe_rcvfilter_enable ( **/
-STATIC
EFI_STATUS
pxe_rcvfilter_disable (
SNP_DRIVER *snp,
@@ -195,7 +193,6 @@ pxe_rcvfilter_disable ( **/
-STATIC
EFI_STATUS
pxe_rcvfilter_read (
SNP_DRIVER *snp
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Reset.c b/MdeModulePkg/Universal/Network/SnpDxe/Reset.c index cc869eb320..cd396bbb09 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Reset.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Reset.c @@ -30,7 +30,6 @@ Revision history: @return other for failed calls
**/
-STATIC
EFI_STATUS
pxe_reset (
SNP_DRIVER *snp
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c index e01a135708..267dde67d5 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Snp.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Snp.c @@ -242,7 +242,6 @@ del_v2p ( return EFI_NOT_FOUND;
}
-STATIC
EFI_STATUS
issue_hwundi_command (
UINT64 cdb
@@ -280,7 +279,6 @@ Returns: @return If ptr is NULL or len is zero, zero is returned.
**/
-STATIC
UINT8
calc_8bit_cksum (
VOID *ptr,
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c b/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c index b6e0728d71..e4c268f575 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Station_address.c @@ -103,7 +103,6 @@ pxe_get_stn_addr ( **/
-STATIC
EFI_STATUS
pxe_set_stn_addr (
SNP_DRIVER *snp,
diff --git a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c index 1567e4b243..72012fada4 100644 --- a/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c +++ b/MdeModulePkg/Universal/Network/SnpDxe/Transmit.c @@ -38,7 +38,6 @@ Revision history: @retval Other error return from undi call.
**/
-STATIC
EFI_STATUS
pxe_fillheader (
SNP_DRIVER *snp,
@@ -151,7 +150,6 @@ pxe_fillheader ( @retval Other error return from undi call.
**/
-STATIC
EFI_STATUS
pxe_transmit (
SNP_DRIVER *snp,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c index b744f68920..32542094c7 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockImpl.c @@ -20,7 +20,6 @@ Abstract: #include "SockImpl.h"
-STATIC
UINT32
SockTcpDataToRcv (
IN SOCK_BUFFER *SockBuffer,
@@ -28,7 +27,6 @@ SockTcpDataToRcv ( IN UINT32 BufLen
);
-STATIC
VOID
SockProcessSndToken (
IN SOCKET *Sock
@@ -56,7 +54,6 @@ SockFreeFoo ( @return The length of the data can be retreived.
**/
-STATIC
UINT32
SockTcpDataToRcv (
IN SOCK_BUFFER *SockBuffer,
@@ -312,7 +309,6 @@ SockProcessTcpSndData ( @return None.
**/
-STATIC
VOID
SockFlushPendingToken (
IN SOCKET *Sock,
@@ -350,7 +346,6 @@ SockFlushPendingToken ( @return None.
**/
-STATIC
VOID
SockWakeConnToken (
IN SOCKET *Sock
@@ -378,7 +373,6 @@ SockWakeConnToken ( @return None.
**/
-STATIC
VOID
SockWakeListenToken (
IN SOCKET *Sock
@@ -425,7 +419,6 @@ SockWakeListenToken ( @return None.
**/
-STATIC
VOID
SockWakeRcvToken (
IN SOCKET *Sock
@@ -472,7 +465,6 @@ SockWakeRcvToken ( @return None.
**/
-STATIC
VOID
SockProcessSndToken (
IN SOCKET *Sock
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c index c3a0b91dea..1c78147b1b 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/SockInterface.c @@ -32,7 +32,6 @@ Abstract: FALSE, the specific Event is not in the List.
**/
-STATIC
BOOLEAN
SockTokenExistedInList (
IN LIST_ENTRY *List,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c index d63c294945..b2f93b45df 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dispatcher.c @@ -23,7 +23,6 @@ Abstract: #define TCP_COMP_VAL(Min, Max, Default, Val) \
((((Val) <= (Max)) && ((Val) >= (Min))) ? (Val) : (Default))
-STATIC
EFI_STATUS
Tcp4Route (
IN TCP_CB *Tcb,
@@ -84,7 +83,6 @@ Returns: instance hasn't been started.
**/
-STATIC
EFI_STATUS
Tcp4GetMode (
IN TCP_CB *Tcb,
@@ -167,7 +165,6 @@ Tcp4GetMode ( @retval EFI_OUT_OF_RESOURCES No port can be allocated.
**/
-STATIC
EFI_STATUS
Tcp4Bind (
IN EFI_TCP4_ACCESS_POINT *AP
@@ -230,7 +227,6 @@ Tcp4Bind ( @retval EFI_SUCCESS The operation is completed successfully.
**/
-STATIC
VOID
Tcp4FlushPcb (
IN TCP_CB *Tcb
@@ -264,7 +260,6 @@ Tcp4FlushPcb ( NetbufFreeList (&Tcb->RcvQue);
}
-STATIC
EFI_STATUS
Tcp4AttachPcb (
IN SOCKET *Sk
@@ -307,7 +302,6 @@ Tcp4AttachPcb ( return EFI_SUCCESS;
}
-STATIC
VOID
Tcp4DetachPcb (
IN SOCKET *Sk
@@ -344,7 +338,6 @@ Tcp4DetachPcb ( @retval EFI_OUT_OF_RESOURCES Failed due to resource limit.
**/
-STATIC
EFI_STATUS
Tcp4ConfigurePcb (
IN SOCKET *Sk,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Driver.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Driver.c index 818b4e1662..9d9cc69003 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Driver.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Driver.c @@ -84,7 +84,6 @@ EFI_SERVICE_BINDING_PROTOCOL mTcp4ServiceBinding = { @retval other The timer is not created.
**/
-STATIC
EFI_STATUS
Tcp4CreateTimer (
VOID
@@ -130,7 +129,6 @@ Tcp4CreateTimer ( @return None.
**/
-STATIC
VOID
Tcp4DestroyTimer (
VOID
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c index 3e6a6f547b..8ef2432f0d 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Input.c @@ -274,7 +274,6 @@ TcpComputeRtt ( @return 0, the data is successfully trimmed.
**/
-STATIC
INTN
TcpTrimSegment (
IN NET_BUF *Nbuf,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Main.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Main.c index 8fe893e48a..9673b7b918 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Main.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Main.c @@ -35,7 +35,6 @@ Abstract: @retval EFI_INVALID_PARAMETER The integrity check is failed.
**/
-STATIC
EFI_STATUS
Tcp4ChkDataBuf (
IN UINT32 DataLen,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c index 446cb9b11c..12f5e4354e 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Misc.c @@ -186,7 +186,6 @@ TcpInitTcbPeer ( @return Pointer to the TCP_CB with the least number of wildcard, if NULL no match is found.
**/
-STATIC
TCP_CB *
TcpLocateListenTcb (
IN TCP_PEER *Local,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Option.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Option.c index 310fa054d1..95f5a8e44a 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Option.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Option.c @@ -22,7 +22,6 @@ Abstract: #include "Tcp4Main.h"
-STATIC
UINT16
TcpGetUint16 (
IN UINT8 *Buf
@@ -44,7 +43,6 @@ TcpGetUint16 ( // CopyMem (Buf, &Data, sizeof (UINT16));
// }
-STATIC
UINT32
TcpGetUint32 (
IN UINT8 *Buf
@@ -55,7 +53,6 @@ TcpGetUint32 ( return NTOHL (Value);
}
-STATIC
VOID
TcpPutUint32 (
IN UINT8 *Buf,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c index f1bc83e20b..82170e23f3 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Output.c @@ -22,7 +22,7 @@ Abstract: #include "Tcp4Main.h"
-STATIC UINT8 mTcpOutFlag[] = {
+UINT8 mTcpOutFlag[] = {
0, // TCP_CLOSED
0, // TCP_LISTEN
TCP_FLG_SYN, // TCP_SYN_SENT
@@ -122,7 +122,6 @@ TcpRcvWinNow ( @return The value of the local receive window size used to fill the outing segment.
**/
-STATIC
UINT16
TcpComputeWnd (
IN TCP_CB *Tcb,
@@ -295,7 +294,6 @@ SetPersistTimer: @retval other Error condition occurred.
**/
-STATIC
INTN
TcpTransmitSegment (
IN TCP_CB *Tcb,
diff --git a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c index 5e957dc918..0b151795ab 100644 --- a/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c +++ b/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Timer.c @@ -24,37 +24,31 @@ Abstract: UINT32 mTcpTick = 1000;
-STATIC
VOID
TcpConnectTimeout (
IN TCP_CB *Tcb
);
-STATIC
VOID
TcpRexmitTimeout (
IN TCP_CB *Tcb
);
-STATIC
VOID
TcpProbeTimeout (
IN TCP_CB *Tcb
);
-STATIC
VOID
TcpKeepaliveTimeout (
IN TCP_CB *Tcb
);
-STATIC
VOID
TcpFinwait2Timeout (
IN TCP_CB *Tcb
);
-STATIC
VOID
Tcp2MSLTimeout (
IN TCP_CB *Tcb
@@ -98,7 +92,6 @@ TcpClose ( @return None.
**/
-STATIC
VOID
TcpConnectTimeout (
IN TCP_CB *Tcb
@@ -133,7 +126,6 @@ TcpConnectTimeout ( @return None.
**/
-STATIC
VOID
TcpRexmitTimeout (
IN TCP_CB *Tcb
@@ -188,7 +180,6 @@ TcpRexmitTimeout ( @return None.
**/
-STATIC
VOID
TcpProbeTimeout (
IN TCP_CB *Tcb
@@ -219,7 +210,6 @@ TcpProbeTimeout ( @return None.
**/
-STATIC
VOID
TcpKeepaliveTimeout (
IN TCP_CB *Tcb
@@ -253,7 +243,6 @@ TcpKeepaliveTimeout ( @return None.
**/
-STATIC
VOID
TcpFinwait2Timeout (
IN TCP_CB *Tcb
@@ -274,7 +263,6 @@ TcpFinwait2Timeout ( @return None.
**/
-STATIC
VOID
Tcp2MSLTimeout (
IN TCP_CB *Tcb
@@ -297,7 +285,6 @@ Tcp2MSLTimeout ( @return None.
**/
-STATIC
VOID
TcpUpdateTimer (
IN TCP_CB *Tcb
diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c index 4b281bb283..ab50830b68 100644 --- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c +++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c @@ -25,7 +25,6 @@ Abstract: UINT16 mUdp4RandomPort;
-STATIC
VOID
EFIAPI
Udp4CheckTimeout (
@@ -33,7 +32,6 @@ Udp4CheckTimeout ( IN VOID *Context
);
-STATIC
BOOLEAN
Udp4FindInstanceByPort (
IN LIST_ENTRY *InstanceList,
@@ -41,7 +39,6 @@ Udp4FindInstanceByPort ( IN UINT16 Port
);
-STATIC
VOID
Udp4DgramSent (
IN EFI_STATUS Status,
@@ -50,7 +47,6 @@ Udp4DgramSent ( IN VOID *NotifyData
);
-STATIC
VOID
Udp4DgramRcvd (
IN EFI_STATUS Status,
@@ -60,7 +56,6 @@ Udp4DgramRcvd ( IN VOID *Context
);
-STATIC
EFI_STATUS
Udp4CancelTokens (
IN NET_MAP *Map,
@@ -68,14 +63,12 @@ Udp4CancelTokens ( IN VOID *Arg OPTIONAL
);
-STATIC
BOOLEAN
Udp4MatchDgram (
IN UDP4_INSTANCE_DATA *Instance,
IN EFI_UDP4_SESSION_DATA *Udp4Session
);
-STATIC
VOID
EFIAPI
Udp4RecycleRxDataWrap (
@@ -83,7 +76,6 @@ Udp4RecycleRxDataWrap ( IN VOID *Context
);
-STATIC
UDP4_RXDATA_WRAP *
Udp4WrapRxData (
IN UDP4_INSTANCE_DATA *Instance,
@@ -91,7 +83,6 @@ Udp4WrapRxData ( IN EFI_UDP4_RECEIVE_DATA *RxData
);
-STATIC
UINTN
Udp4EnqueueDgram (
IN UDP4_SERVICE_DATA *Udp4Service,
@@ -99,13 +90,11 @@ Udp4EnqueueDgram ( IN EFI_UDP4_RECEIVE_DATA *RxData
);
-STATIC
VOID
Udp4DeliverDgram (
IN UDP4_SERVICE_DATA *Udp4Service
);
-STATIC
VOID
Udp4Demultiplex (
IN UDP4_SERVICE_DATA *Udp4Service,
@@ -113,7 +102,6 @@ Udp4Demultiplex ( IN NET_BUF *Packet
);
-STATIC
VOID
Udp4IcmpHandler (
IN UDP4_SERVICE_DATA *Udp4Service,
@@ -122,7 +110,6 @@ Udp4IcmpHandler ( IN NET_BUF *Packet
);
-STATIC
VOID
Udp4SendPortUnreach (
IN IP_IO *IpIo,
@@ -270,7 +257,6 @@ Udp4CleanService ( @return None.
**/
-STATIC
VOID
EFIAPI
Udp4CheckTimeout (
@@ -397,7 +383,6 @@ Udp4CleanInstance ( @return Is the specified <Address, Port> pair found or not.
**/
-STATIC
BOOLEAN
Udp4FindInstanceByPort (
IN LIST_ENTRY *InstanceList,
@@ -870,7 +855,6 @@ Udp4RemoveToken ( @return None.
**/
-STATIC
VOID
Udp4DgramSent (
IN EFI_STATUS Status,
@@ -910,7 +894,6 @@ Udp4DgramSent ( @return None.
**/
-STATIC
VOID
Udp4DgramRcvd (
IN EFI_STATUS Status,
@@ -1008,7 +991,6 @@ Udp4LeaveGroup ( cancelled.
**/
-STATIC
EFI_STATUS
Udp4CancelTokens (
IN NET_MAP *Map,
@@ -1146,7 +1128,6 @@ Udp4InstanceCancelToken ( @return The udp datagram matches the receiving requirments of the Instance or not.
**/
-STATIC
BOOLEAN
Udp4MatchDgram (
IN UDP4_INSTANCE_DATA *Instance,
@@ -1220,7 +1201,6 @@ Udp4MatchDgram ( @return None.
**/
-STATIC
VOID
EFIAPI
Udp4RecycleRxDataWrap (
@@ -1263,7 +1243,6 @@ Udp4RecycleRxDataWrap ( @return Pointer to the structure wrapping the RxData and the Packet.
**/
-STATIC
UDP4_RXDATA_WRAP *
Udp4WrapRxData (
IN UDP4_INSTANCE_DATA *Instance,
@@ -1321,7 +1300,6 @@ Udp4WrapRxData ( @return The times this datagram is enqueued.
**/
-STATIC
UINTN
Udp4EnqueueDgram (
IN UDP4_SERVICE_DATA *Udp4Service,
@@ -1441,7 +1419,6 @@ Udp4InstanceDeliverDgram ( @return None.
**/
-STATIC
VOID
Udp4DeliverDgram (
IN UDP4_SERVICE_DATA *Udp4Service
@@ -1480,7 +1457,6 @@ Udp4DeliverDgram ( @return None.
**/
-STATIC
VOID
Udp4Demultiplex (
IN UDP4_SERVICE_DATA *Udp4Service,
@@ -1572,7 +1548,6 @@ Udp4Demultiplex ( @return None.
**/
-STATIC
VOID
Udp4SendPortUnreach (
IN IP_IO *IpIo,
@@ -1675,7 +1650,6 @@ Udp4SendPortUnreach ( @return None.
**/
-STATIC
VOID
Udp4IcmpHandler (
IN UDP4_SERVICE_DATA *Udp4Service,
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c index 87bedcb006..841ea09a01 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c @@ -32,7 +32,6 @@ Abstract: @retval others If error occurs when updating arp cache
**/
-STATIC
EFI_STATUS
UpdateArpCache (
IN EFI_PXE_BASE_CODE_PROTOCOL * This
@@ -74,7 +73,6 @@ UpdateArpCache ( @param Context Context of the timer event
**/
-STATIC
VOID
EFIAPI
ArpCacheUpdateTimeout (
@@ -92,7 +90,6 @@ ArpCacheUpdateTimeout ( @param Context
**/
-STATIC
BOOLEAN
FindInArpCache (
EFI_PXE_BASE_CODE_MODE *PxeBcMode,
@@ -121,7 +118,6 @@ FindInArpCache ( @return None.
**/
-STATIC
VOID
EFIAPI
IcmpErrorListenHandlerDpc (
@@ -208,7 +204,6 @@ Resume: @return None.
**/
-STATIC
VOID
EFIAPI
IcmpErrorListenHandler (
@@ -1232,7 +1227,6 @@ ON_EXIT: @retval FLASE The UDP package doesn't matches IP filters
**/
-STATIC
BOOLEAN
CheckIpByFilter (
EFI_PXE_BASE_CODE_MODE *PxeBcMode,
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c index af846c5302..6afe1bbc9f 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c @@ -23,7 +23,7 @@ Module Name: Pcd.c // host all distinct TokenSpace guid in both
// PEI ExMap and DXE ExMap.
//
-STATIC EFI_GUID *TmpTokenSpaceBuffer[PEI_EXMAPPING_TABLE_SIZE + DXE_EXMAPPING_TABLE_SIZE] = { 0 };
+EFI_GUID *TmpTokenSpaceBuffer[PEI_EXMAPPING_TABLE_SIZE + DXE_EXMAPPING_TABLE_SIZE] = { 0 };
///
/// PCD database lock.
@@ -73,7 +73,7 @@ PCD_PROTOCOL mPcdInstance = { //
// Static global to reduce the code size
//
-STATIC EFI_HANDLE mNewHandle = NULL;
+EFI_HANDLE mNewHandle = NULL;
/**
Main entry for PCD DXE driver.
diff --git a/MdeModulePkg/Universal/PCD/Pei/Pcd.c b/MdeModulePkg/Universal/PCD/Pei/Pcd.c index 28088afc5b..019f144469 100644 --- a/MdeModulePkg/Universal/PCD/Pei/Pcd.c +++ b/MdeModulePkg/Universal/PCD/Pei/Pcd.c @@ -54,7 +54,7 @@ PCD_PPI mPcdPpiInstance = { PeiPcdGetNextTokenSpace
};
-STATIC EFI_PEI_PPI_DESCRIPTOR mPpiPCD = {
+EFI_PEI_PPI_DESCRIPTOR mPpiPCD = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gPcdPpiGuid,
&mPcdPpiInstance
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/Ia32/Ia32PcRtc.c b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/Ia32/Ia32PcRtc.c index 576a9a3741..638d54d3cf 100644 --- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/Ia32/Ia32PcRtc.c +++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/Ia32/Ia32PcRtc.c @@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "PcRtc.h"
-static PC_RTC_MODULE_GLOBALS mModuleGlobal;
+PC_RTC_MODULE_GLOBALS mModuleGlobal;
EFI_STATUS
EFIAPI
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c index ccd1c4f297..a82f5d133e 100644 --- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c +++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c @@ -14,21 +14,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "PcRtc.h"
-STATIC
INTN
CompareHMS (
IN EFI_TIME *From,
IN EFI_TIME *To
);
-STATIC
BOOLEAN
IsWithinOneDay (
IN EFI_TIME *From,
IN EFI_TIME *To
);
-STATIC
UINT8
RtcRead (
IN UINT8 Address
@@ -53,7 +50,6 @@ Returns: return IoRead8 (PCAT_RTC_DATA_REGISTER);
}
-STATIC
VOID
RtcWrite (
IN UINT8 Address,
@@ -1034,7 +1030,6 @@ Returns: }
}
-STATIC
INTN
CompareHMS (
IN EFI_TIME *From,
@@ -1071,7 +1066,6 @@ Returns: }
}
-STATIC
BOOLEAN
IsWithinOneDay (
IN EFI_TIME *From,
diff --git a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c index ae177f487c..b3adf72bef 100644 --- a/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c +++ b/MdeModulePkg/Universal/PcatSingleSegmentPciCfg2Pei/PciCfg2.c @@ -32,7 +32,6 @@ @return The PCI address with PCI_LIB_ADDRESS format.
**/
-STATIC
UINTN
PciCfgAddressConvert (
EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS *Address
diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c index 89f9cf60f7..7f5bb8d148 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatOverMngr/PlatOverMngr.c @@ -31,25 +31,25 @@ Abstract: #include "PlatOverMngr.h"
-STATIC EFI_GUID mPlatformOverridesManagerGuid = PLAT_OVER_MNGR_GUID;
+EFI_GUID mPlatformOverridesManagerGuid = PLAT_OVER_MNGR_GUID;
-STATIC LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);
+LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);
-STATIC EFI_HANDLE *mDevicePathHandleBuffer;
-STATIC EFI_HANDLE *mDriverImageHandleBuffer;
+EFI_HANDLE *mDevicePathHandleBuffer;
+EFI_HANDLE *mDriverImageHandleBuffer;
-STATIC UINTN mSelectedCtrIndex;
-STATIC EFI_STRING_ID mControllerToken[MAX_CHOICE_NUM];
+UINTN mSelectedCtrIndex;
+EFI_STRING_ID mControllerToken[MAX_CHOICE_NUM];
-STATIC UINTN mDriverImageHandleCount;
-STATIC EFI_STRING_ID mDriverImageToken[MAX_CHOICE_NUM];
-STATIC EFI_STRING_ID mDriverImageFilePathToken[MAX_CHOICE_NUM];
-STATIC EFI_LOADED_IMAGE_PROTOCOL *mDriverImageProtocol[MAX_CHOICE_NUM];
-STATIC EFI_DEVICE_PATH_PROTOCOL *mControllerDevicePathProtocol[MAX_CHOICE_NUM];
-STATIC UINTN mSelectedDriverImageNum;
-STATIC UINTN mLastSavedDriverImageNum;
-STATIC CHAR8 mLanguage[RFC_3066_ENTRY_SIZE];
-STATIC UINT16 mCurrentPage;
+UINTN mDriverImageHandleCount;
+EFI_STRING_ID mDriverImageToken[MAX_CHOICE_NUM];
+EFI_STRING_ID mDriverImageFilePathToken[MAX_CHOICE_NUM];
+EFI_LOADED_IMAGE_PROTOCOL *mDriverImageProtocol[MAX_CHOICE_NUM];
+EFI_DEVICE_PATH_PROTOCOL *mControllerDevicePathProtocol[MAX_CHOICE_NUM];
+UINTN mSelectedDriverImageNum;
+UINTN mLastSavedDriverImageNum;
+CHAR8 mLanguage[RFC_3066_ENTRY_SIZE];
+UINT16 mCurrentPage;
/**
The driver Entry Point. The funciton will export a disk device class formset and
diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.c b/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.c index 2a189138ed..75032720fd 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.c +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.c @@ -27,9 +27,9 @@ EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL gPlatformDriverOverride = { DriverLoaded
};
-STATIC LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);
-STATIC BOOLEAN mEnvironmentVariableRead = FALSE;
-STATIC EFI_HANDLE mCallerImageHandle;
+LIST_ENTRY mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);
+BOOLEAN mEnvironmentVariableRead = FALSE;
+EFI_HANDLE mCallerImageHandle;
EFI_STATUS
@@ -81,7 +81,6 @@ Returns: GetDriver().
**/
-STATIC
EFI_STATUS
EFIAPI
GetDriver (
@@ -152,7 +151,6 @@ GetDriver ( **/
-STATIC
EFI_STATUS
EFIAPI
GetDriverPath (
@@ -172,7 +170,6 @@ GetDriverPath ( **/
-STATIC
EFI_STATUS
EFIAPI
DriverLoaded (
diff --git a/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.h b/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.h index a9d62702cf..88e5cc3d97 100644 --- a/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.h +++ b/MdeModulePkg/Universal/PlatformDriverOverride/PlatformDriOverrideDxe/PlatformDriOverride.h @@ -22,13 +22,12 @@ Abstract: #define PLATFORM_DRI_OVERRIDE_H_ #include <Uefi.h> -
-#include <Library/DebugLib.h>
-#include <Library/UefiDriverEntryPoint.h>
-#include <Library/BaseLib.h>
+ +#include <Library/DebugLib.h> +#include <Library/UefiDriverEntryPoint.h> +#include <Library/BaseLib.h> #include <Library/PlatDriOverLib.h> -STATIC EFI_STATUS EFIAPI GetDriver ( @@ -37,7 +36,6 @@ GetDriver ( IN OUT EFI_HANDLE * DriverImageHandle ); -STATIC EFI_STATUS EFIAPI GetDriverPath ( @@ -46,7 +44,6 @@ GetDriverPath ( IN OUT EFI_DEVICE_PATH_PROTOCOL **DriverImagePath ); -STATIC EFI_STATUS EFIAPI DriverLoaded ( diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c index 2869c587c5..8421ad9777 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/Ui.c @@ -1019,7 +1019,7 @@ GetWidth ( }
-STATIC BOOLEAN GetLineByWidthFinished = FALSE;
+BOOLEAN GetLineByWidthFinished = FALSE;
/**
Will copy LineWidth amount of a string in the OutputString buffer and return the
diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c index 158e396963..8bee4950da 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariable.c @@ -26,7 +26,6 @@ ESAL_VARIABLE_GLOBAL *mVariableModuleGlobal; // when EfiAcquireLock in UefiLib can handle the
// the call in UEFI Runtimer driver in RT phase.
//
-STATIC
VOID
AcquireLockOnlyAtBootTime (
IN EFI_LOCK *Lock
@@ -42,7 +41,6 @@ AcquireLockOnlyAtBootTime ( // when EfiAcquireLock in UefiLib can handle the
// the call in UEFI Runtimer driver in RT phase.
//
-STATIC
VOID
ReleaseLockOnlyAtBootTime (
IN EFI_LOCK *Lock
@@ -53,7 +51,6 @@ ReleaseLockOnlyAtBootTime ( }
}
-STATIC
UINT8 *
GetVariableDataPtr (
IN VARIABLE_HEADER *Variable
@@ -83,7 +80,6 @@ Returns: return (UINT8 *) ((UINTN) GET_VARIABLE_NAME_PTR (Variable) + Variable->NameSize + GET_PAD_SIZE (Variable->NameSize));
}
-STATIC
VARIABLE_HEADER *
GetNextVariablePtr (
IN VARIABLE_HEADER *Variable
@@ -123,7 +119,6 @@ Returns: return VarHeader;
}
-STATIC
VARIABLE_HEADER *
GetEndPointer (
IN VARIABLE_STORE_HEADER *VolHeader
@@ -150,7 +145,6 @@ Returns: return (VARIABLE_HEADER *) ((UINTN) VolHeader + VolHeader->Size);
}
-STATIC
EFI_STATUS
FindVariable (
IN CHAR16 *VariableName,
@@ -796,7 +790,6 @@ Returns: return EFI_SUCCESS;
}
-STATIC
EFI_STATUS
InitializeVariableStore (
OUT EFI_PHYSICAL_ADDRESS *VariableBase,
diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index 1426124005..18e252f973 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -21,12 +21,12 @@ Module Name: //
// Module globals
//
-static EFI_PEI_READ_ONLY_VARIABLE2_PPI mVariablePpi = {
+EFI_PEI_READ_ONLY_VARIABLE2_PPI mVariablePpi = {
PeiGetVariable,
PeiGetNextVariableName
};
-static EFI_PEI_PPI_DESCRIPTOR mPpiListVariable = {
+EFI_PEI_PPI_DESCRIPTOR mPpiListVariable = {
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
&gEfiPeiReadOnlyVariable2PpiGuid,
&mVariablePpi
@@ -117,7 +117,6 @@ Returns: return (VARIABLE_HEADER *) HEADER_ALIGN ((UINTN) VarStoreHeader + VarStoreHeader->Size);
}
-STATIC
BOOLEAN
EFIAPI
IsValidVariableHeader (
@@ -298,7 +297,6 @@ Returns: }
-STATIC
VARIABLE_STORE_STATUS
EFIAPI
GetVariableStoreStatus (
@@ -342,7 +340,6 @@ Returns: }
}
-STATIC
EFI_STATUS
CompareWithValidVariable (
IN VARIABLE_HEADER *Variable,
@@ -399,7 +396,6 @@ Returns: return EFI_NOT_FOUND;
}
-STATIC
EFI_STATUS
EFIAPI
FindVariable (
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c index a235ba09f8..ed68f12017 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/reclaim.c @@ -79,7 +79,6 @@ GetFvbHandleByAddress ( return Status;
}
-STATIC
EFI_STATUS
GetLbaAndOffsetByAddress (
IN EFI_PHYSICAL_ADDRESS Address,
|