From 0f2eb31c764685a1919b52f414bea44ea37580a2 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Mon, 26 Oct 2015 14:58:46 +0000 Subject: [PATCH] OvmfPkg: QemuFlashFvbServicesRuntimeDxe: clean up includes and libraries Before introducing the SMM driver interface, clean up #include directives and [LibraryClasses] by: - removing what's not directly used (HobLib and UefiLib), - adding what's used but not spelled out (DevicePathLib), - sorting the result. This helps with seeing each source file's dependencies and with determining the library classes for the SMM driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18672 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c | 16 ++-------------- .../FvbServicesRuntimeDxe.inf | 13 ++++++------- .../FwBlockService.c | 8 ++++---- .../QemuFlashFvbServicesRuntimeDxe/QemuFlash.c | 2 +- 4 files changed, 13 insertions(+), 26 deletions(-) diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c index ec6bfdb24b..6edbeed82f 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbInfo.c @@ -24,28 +24,16 @@ // // The package level header files this module uses // -#include +#include + // // The protocols, PPI and GUID defintions for this module // -#include -#include #include -#include -#include // // The Library classes this module consumes // -#include -#include #include -#include -#include -#include -#include -#include -#include -#include #include typedef struct { diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf index 480b6946b1..ea8413fcfd 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf @@ -46,17 +46,16 @@ OvmfPkg/OvmfPkg.dec [LibraryClasses] - UefiBootServicesTableLib - MemoryAllocationLib + BaseLib BaseMemoryLib - HobLib DebugLib - UefiRuntimeLib + DevicePathLib DxeServicesTableLib - BaseLib - UefiDriverEntryPoint - UefiLib + MemoryAllocationLib PcdLib + UefiBootServicesTableLib + UefiDriverEntryPoint + UefiRuntimeLib [Guids] gEfiEventVirtualAddressChangeGuid # ALWAYS_CONSUMED diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c index 0158bf9cd0..c37aed1c9e 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c @@ -23,19 +23,19 @@ // // The protocols, PPI and GUID defintions for this module // -#include #include +#include // // The Library classes this module consumes // #include -#include -#include #include +#include +#include +#include #include #include -#include #include "FwBlockService.h" #include "QemuFlash.h" diff --git a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c index 5b03046896..28bcb135ae 100644 --- a/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c +++ b/OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c @@ -13,8 +13,8 @@ **/ -#include #include +#include #include #include "QemuFlash.h" -- 2.39.2