From dac606abdcdc6503be6718ba9b1885d1a0fdbb3d Mon Sep 17 00:00:00 2001 From: TsunFeng Date: Wed, 28 Aug 2024 16:19:25 +0800 Subject: [PATCH] Remove redundant extern in H file --- .../GoogleTest/Protocol/MockAcpiSystemDescriptionTable.h | 4 ---- MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiTable.h | 4 ---- .../Mock/Include/GoogleTest/Protocol/MockFirmwareVolume2.h | 4 ---- 3 files changed, 12 deletions(-) diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiSystemDescriptionTable.h b/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiSystemDescriptionTable.h index 8c933585c4..61c48004c6 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiSystemDescriptionTable.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiSystemDescriptionTable.h @@ -108,10 +108,6 @@ struct MockAcpiSdtProtocol { ); }; -extern "C" { - extern EFI_ACPI_SDT_PROTOCOL *gAcpiSdtProtocol; -} - MOCK_INTERFACE_DEFINITION (MockAcpiSdtProtocol); MOCK_FUNCTION_DEFINITION (MockAcpiSdtProtocol, GetAcpiTable, 4, EFIAPI); MOCK_FUNCTION_DEFINITION (MockAcpiSdtProtocol, RegisterNotify, 2, EFIAPI); diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiTable.h b/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiTable.h index 14a93ead36..e4780c3db4 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiTable.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockAcpiTable.h @@ -40,10 +40,6 @@ struct MockAcpiTableProtocol { ); }; -extern "C" { - extern EFI_ACPI_TABLE_PROTOCOL *gAcpiTableProtocol; -} - MOCK_INTERFACE_DEFINITION (MockAcpiTableProtocol); MOCK_FUNCTION_DEFINITION (MockAcpiTableProtocol, InstallAcpiTable, 4, EFIAPI); MOCK_FUNCTION_DEFINITION (MockAcpiTableProtocol, UninstallAcpiTable, 2, EFIAPI); diff --git a/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockFirmwareVolume2.h b/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockFirmwareVolume2.h index 9876b4a4ee..e084769c2d 100644 --- a/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockFirmwareVolume2.h +++ b/MdePkg/Test/Mock/Include/GoogleTest/Protocol/MockFirmwareVolume2.h @@ -114,10 +114,6 @@ struct MockFirmwareVolume2Protocol { ); }; -extern "C" { - extern EFI_FIRMWARE_VOLUME2_PROTOCOL *gFirmwareVolume2Protocol; -} - MOCK_INTERFACE_DEFINITION (MockFirmwareVolume2Protocol); MOCK_FUNCTION_DEFINITION (MockFirmwareVolume2Protocol, GetVolumeAttributes, 2, EFIAPI); MOCK_FUNCTION_DEFINITION (MockFirmwareVolume2Protocol, SetVolumeAttributes, 2, EFIAPI);