Re: [PATCH 28/43] OvmfPkg/PciHostBridgeLib: consolidate #includes and INF file sections #includes

Philippe Mathieu-Daudé

On 5/26/21 10:14 PM, Laszlo Ersek wrote:
- In every C file, list every necessary public #include individually, with
an example identifier that's actually consumed.

- Place all public #includes first, all module-private #includes second.
Separate them with a single empty line. Keep each section sorted in

- Sort all sections in the INF file, except [Defines].

- Add unlisted lib classes.

- Remove unnecessary #include directives, add unlisted #include

Cc: Anthony Perard <>
Cc: Ard Biesheuvel <>
Cc: Jordan Justen <>
Cc: Julien Grall <>
Cc: Philippe Mathieu-Daudé <>
Signed-off-by: Laszlo Ersek <>
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf | 7 +++---
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c | 22 +++++++-----------
OvmfPkg/Library/PciHostBridgeLib/XenSupport.c | 24 +++++++++-----------
3 files changed, 23 insertions(+), 30 deletions(-)
Reviewed-by: Philippe Mathieu-Daude <>

Join to automatically receive all group messages.