Skip to content

Commit

Permalink
MdeModulePkg: Remove redundant library classes and GUIDs
Browse files Browse the repository at this point in the history
Some redundant library classes and GUIDs
have been removed in inf, .c and .h files.
https://bugzilla.tianocore.org/show_bug.cgi?id=1044
https://bugzilla.tianocore.org/show_bug.cgi?id=1045
https://bugzilla.tianocore.org/show_bug.cgi?id=1047
https://bugzilla.tianocore.org/show_bug.cgi?id=1049
https://bugzilla.tianocore.org/show_bug.cgi?id=1051
https://bugzilla.tianocore.org/show_bug.cgi?id=1052
https://bugzilla.tianocore.org/show_bug.cgi?id=1053
https://bugzilla.tianocore.org/show_bug.cgi?id=1054
https://bugzilla.tianocore.org/show_bug.cgi?id=1055
https://bugzilla.tianocore.org/show_bug.cgi?id=1056
https://bugzilla.tianocore.org/show_bug.cgi?id=1017
https://bugzilla.tianocore.org/show_bug.cgi?id=1035
https://bugzilla.tianocore.org/show_bug.cgi?id=1033
https://bugzilla.tianocore.org/show_bug.cgi?id=1012
https://bugzilla.tianocore.org/show_bug.cgi?id=1011
https://bugzilla.tianocore.org/show_bug.cgi?id=1062

v2:
1. Correct copyright year.
2. Fix alignment issue in AcpiPlatformDxe.inf.
3. Add DevicePathLib which is removed before in I2cHostDxe.inf.
4. Update NvmExpressPei.inf, NvmExpressPei.h, IScsiDxe.inf,
   IScsiDxe.inf, IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf
   and PiSmmCore.h for https://bugzilla.tianocore.org/show_bug.cgi?id=1062.

v3:
1. Add https://bugzilla.tianocore.org/show_bug.cgi?id=1062 to the
   link list.
2. Remove DevicePathLib from I2cHostDxe.inf.
3. Update NvmExpressPei.inf, NvmExpressPei.h, UfsPciHcDxe.inf,
   UfsPciHcDxe.h, I2cHostDxe.inf, AtaBusDxe.inf, IScsiDxe.inf,
   IScsiDxe.h, DxeMain.inf, DxeMain.h, PiSmmCore.inf and PiSmmCore.h
   for https://bugzilla.tianocore.org/show_bug.cgi?id=1062.
   (Forget to add UfsPciHcDxe.inf, UfsPciHcDxe.h, AtaBusDxe.inf,
   and I2cHostDxe.inf previously.)

Cc: Star Zeng <[email protected]>
Cc: Eric Dong <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: shenglei <[email protected]>
Reviewed-by: Star Zeng <[email protected]>
  • Loading branch information
shenglei10 authored and lzeng14 committed Aug 20, 2018
1 parent 004b811 commit 131818b
Show file tree
Hide file tree
Showing 32 changed files with 1 addition and 40 deletions.
1 change: 0 additions & 1 deletion MdeModulePkg/Application/CapsuleApp/CapsuleApp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <Library/PrintLib.h>
#include <Library/BmpSupportLib.h>
#include <Protocol/GraphicsOutput.h>
#include <Guid/GlobalVariable.h>
#include <Guid/CapsuleReport.h>
#include <Guid/SystemResourceTable.h>
#include <Guid/FmpCapsule.h>
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Application/CapsuleApp/CapsuleApp.inf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
MdeModulePkg/MdeModulePkg.dec

[Guids]
gEfiGlobalVariableGuid ## CONSUMES ## GUID
gEfiCapsuleReportGuid ## CONSUMES ## GUID
gEfiFmpCapsuleGuid ## CONSUMES ## GUID
gWindowsUxCapsuleGuid ## CONSUMES ## GUID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/PrintLib.h>
#include <Library/UefiLib.h>
#include <Library/DevicePathLib.h>
#include <Library/PeCoffGetEntryPointLib.h>
#include <Library/DxeServicesLib.h>
#include <Protocol/SmmCommunication.h>
#include <Guid/PiSmmCommunicationRegionTable.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
UefiLib
PrintLib
DevicePathLib
PeCoffGetEntryPointLib
DxeServicesLib

[Protocols]
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
ReportStatusCodeLib

[Guids]
gEfiDiskInfoIdeInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED
gEfiDiskInfoAhciInterfaceGuid ## SOMETIMES_PRODUCES ## UNDEFINED

[Protocols]
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/I2c/I2cDxe/I2cHostDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
[LibraryClasses]
BaseMemoryLib
DebugLib
DevicePathLib
MemoryAllocationLib
UefiBootServicesTableLib
UefiDriverEntryPoint
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <Library/MemoryAllocationLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/IoLib.h>
#include <Library/PciLib.h>
#include <Library/TimerLib.h>

//
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPei.inf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
MemoryAllocationLib
BaseMemoryLib
IoLib
PciLib
TimerLib
PeimEntryPoint

Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Pci/PciBusDxe/PciBus.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DevicePathLib.h>
#include <Library/PcdLib.h>
#include <Library/PeCoffLib.h>

#include <IndustryStandard/Pci.h>
#include <IndustryStandard/PeImage.h>
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
BaseLib
UefiDriverEntryPoint
DebugLib
PeCoffLib

[Protocols]
gEfiPciHotPlugRequestProtocolGuid ## SOMETIMES_PRODUCES
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Pci/UfsPciHcDxe/UfsPciHcDxe.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiDriverEntryPoint.h>
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Bus/Pci/UfsPciHcDxe/UfsPciHcDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
[LibraryClasses]
BaseLib
DebugLib
DevicePathLib
UefiDriverEntryPoint
UefiBootServicesTableLib
UefiLib
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Core/Dxe/DxeMain.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/DevicePathLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/ReportStatusCodeLib.h>
#include <Library/TimerLib.h>
#include <Library/DxeServicesLib.h>
#include <Library/DebugAgentLib.h>
#include <Library/CpuExceptionHandlerLib.h>
Expand Down
2 changes: 0 additions & 2 deletions MdeModulePkg/Core/Dxe/DxeMain.inf
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
UefiBootServicesTableLib
DevicePathLib
ReportStatusCodeLib
TimerLib
DxeServicesLib
DebugAgentLib
CpuExceptionHandlerLib
Expand Down Expand Up @@ -163,7 +162,6 @@
gEfiHiiPackageListProtocolGuid ## SOMETIMES_PRODUCES
gEfiEbcProtocolGuid ## SOMETIMES_CONSUMES
gEfiSmmBase2ProtocolGuid ## SOMETIMES_CONSUMES
gEfiBlockIoProtocolGuid ## SOMETIMES_CONSUMES

# Arch Protocols
gEfiBdsArchProtocolGuid ## CONSUMES
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Guid/PropertiesTable.h>

#include <Protocol/FirmwareVolume2.h>
#include <Protocol/BlockIo.h>
#include <Protocol/SimpleFileSystem.h>

#include "DxeMain.h"
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Core/PiSmmCore/PiSmmCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include <Library/PcdLib.h>
#include <Library/SmmCorePlatformHookLib.h>
#include <Library/PerformanceLib.h>
#include <Library/TimerLib.h>
#include <Library/HobLib.h>
#include <Library/SmmMemLib.h>

Expand Down
3 changes: 0 additions & 3 deletions MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@
PcdLib
SmmCorePlatformHookLib
PerformanceLib
TimerLib
HobLib
SmmMemLib
DxeServicesLib

[Protocols]
gEfiDxeSmmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRegister
Expand All @@ -90,7 +88,6 @@
gEfiSmmGpiDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
gEfiSmmIoTrapDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
gEfiSmmUsbDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
gEfiSmmCpuProtocolGuid ## SOMETIMES_CONSUMES
gEdkiiSmmMemoryAttributeProtocolGuid ## CONSUMES
gEfiSmmSxDispatch2ProtocolGuid ## SOMETIMES_CONSUMES

Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Core/PiSmmCore/SmiHandlerProfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiLib.h>
#include <Library/DevicePathLib.h>
#include <Library/PeCoffGetEntryPointLib.h>
#include <Library/DxeServicesLib.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/SmmAccess2.h>
#include <Protocol/SmmReadyToLock.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@

[LibraryClasses]
UefiLib
DxeServicesLib
PcdLib
BaseMemoryLib
DebugLib
UefiBootServicesTableLib
UefiDriverEntryPoint

[Protocols]
gEfiAcpiTableProtocolGuid ## CONSUMES
gEfiFirmwareVolume2ProtocolGuid ## CONSUMES

[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiTableStorageFile ## CONSUMES
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@

#include <Guid/Acpi.h>
#include <Guid/FirmwarePerformance.h>
#include <Guid/EventGroup.h>
#include <Guid/EventLegacyBios.h>

#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@

[Guids]
gEfiEventExitBootServicesGuid ## CONSUMES ## Event
gEfiEventReadyToBootGuid ## CONSUMES ## Event
gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event
## SOMETIMES_CONSUMES ## HOB
## SOMETIMES_CONSUMES ## Variable:L"FirmwarePerformance"
## PRODUCES ## Variable:L"FirmwarePerformance"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

[LibraryClasses]
UefiBootServicesTableLib
MemoryAllocationLib
UefiDriverEntryPoint
BaseMemoryLib
BaseLib
Expand Down
2 changes: 0 additions & 2 deletions MdeModulePkg/Universal/EbcDxe/EbcDebugger.inf
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@

[Guids]
gEfiFileInfoGuid ## SOMETIMES_CONSUMES ## GUID
gEfiFileSystemInfoGuid ## SOMETIMES_CONSUMES ## GUID
gEfiFileSystemVolumeLabelInfoIdGuid ## SOMETIMES_CONSUMES ## GUID
gEfiDebugImageInfoTableGuid ## SOMETIMES_CONSUMES ## GUID

[Depex]
Expand Down
2 changes: 0 additions & 2 deletions MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/DebuggerConfiguration.h>
#include <Guid/FileInfo.h>
#include <Guid/FileSystemInfo.h>
#include <Guid/FileSystemVolumeLabelInfo.h>
#include <Guid/DebugImageInfoTable.h>

typedef UINTN EFI_DEBUG_STATUS;
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Universal/EsrtDxe/EsrtDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
DxeServicesTableLib
UefiBootServicesTableLib
UefiRuntimeServicesTableLib
PrintLib

[Guids]
gEfiSystemResourceTableGuid ## PRODUCES ## SystemTable
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Universal/EsrtDxe/EsrtImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Library/CapsuleLib.h>
#include <Library/PrintLib.h>

#include <Protocol/FirmwareManagement.h>
#include <Protocol/EsrtManagement.h>
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
gEfiIfrTianoGuid ## SOMETIMES_PRODUCES ## UNDEFINED
gEfiAcpiTableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEfiAcpi10TableGuid ## SOMETIMES_CONSUMES ## SystemTable
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable
## SOMETIMES_PRODUCES ## Variable:L"iSCSIDeviceList"
## SOMETIMES_CONSUMES ## Variable:L"iSCSIDeviceList"
## SOMETIMES_CONSUMES ## UNDEFINED # HiiIsConfigHdrMatch mVendorStorageName
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Universal/Network/IScsiDxe/IScsiImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiRuntimeServicesTableLib.h>

#include <Guid/EventGroup.h>
#include <Guid/Acpi.h>

#include "IScsiCommon.h"
#include "IScsiDriver.h"
Expand Down
1 change: 0 additions & 1 deletion MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiLib.h>
#include <Library/IoLib.h>
#include <Library/UefiDriverEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeLib.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
UefiRuntimeLib
UefiBootServicesTableLib
UefiDriverEntryPoint
IoLib
UefiLib
DebugLib
BaseLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiLib.h>
#include <Library/PcdLib.h>
#include <Guid/PiSmmCommunicationRegionTable.h>

#define DEFAULT_COMMON_PI_SMM_COMMUNIATION_REGION_PAGES 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
MemoryAllocationLib
HobLib
DebugLib
PcdLib

[Guids]
gEdkiiPiSmmCommunicationRegionTableGuid ## PRODUCES ## SystemTable
Expand Down

0 comments on commit 131818b

Please sign in to comment.