[edk2-devel] [PATCH 10/43] OvmfPkg/AcpiPlatformDxe: consolidate #includes and [LibraryClasses]

Philippe Mathieu-Daudé philmd at redhat.com
Thu May 27 08:41:41 UTC 2021


On 5/26/21 10:14 PM, Laszlo Ersek wrote:
> - #include only such public headers in "AcpiPlatform.h" that are required
>   by the function declarations and type definitions introduced in
>   "AcpiPlatform.h". Don't use "AcpiPlatform.h" as a convenience #include
>   file.
> 
> - In every file, list every necessary public #include individually, with
>   an example identifier that's actually consumed.
> 
> - Remove unnecessary lib classes, add unlisted lib classes.
> 
> - Remove unnecessary #include directives, add unlisted #include
>   directives.
> 
> Cc: Ard Biesheuvel <ardb+tianocore at kernel.org>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Philippe Mathieu-Daudé <philmd at redhat.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122
> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> ---
>  OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf          |  1 -
>  OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf |  2 ++
>  OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h               | 12 ++----------
>  OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c               |  5 +++++
>  OvmfPkg/AcpiPlatformDxe/BootScript.c                 |  7 ++++---
>  OvmfPkg/AcpiPlatformDxe/EntryPoint.c                 |  6 +++++-
>  OvmfPkg/AcpiPlatformDxe/PciDecoding.c                |  4 +++-
>  OvmfPkg/AcpiPlatformDxe/Qemu.c                       | 14 +++++++-------
>  OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c              | 19 ++++++++++---------
>  OvmfPkg/AcpiPlatformDxe/Xen.c                        |  4 +++-
>  10 files changed, 41 insertions(+), 33 deletions(-)

Reviewed-by: Philippe Mathieu-Daude <philmd at redhat.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75782): https://edk2.groups.io/g/devel/message/75782
Mute This Topic: https://groups.io/mt/83110470/1813853
Mute #includes:https://edk2.groups.io/g/devel/mutehashtag/includes
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list