From 6dead8d5af5d1bb1624bd9c1a39383704d8c31f8 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 16 Nov 2017 21:30:58 +0100 Subject: [PATCH] OvmfPkg: make PlatformDebugLibIoPort a proper BASE library Remove Uefi.h, which includes UefiSpec.h, and change the return value to match the RETURN_STATUS type. Contributed-under: TianoCore Contribution Agreement 1.1 Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Jordan Justen (Intel address) Signed-off-by: Paolo Bonzini Tested-by: Laszlo Ersek Reviewed-by: Laszlo Ersek --- OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c index 5435767c1c..74f4d9c2d6 100644 --- a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c +++ b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c @@ -15,7 +15,6 @@ **/ #include -#include #include #include #include @@ -32,7 +31,7 @@ /** This constructor function does not have to do anything. - @retval EFI_SUCCESS The constructor always returns RETURN_SUCCESS. + @retval RETURN_SUCCESS The constructor always returns RETURN_SUCCESS. **/ RETURN_STATUS @@ -41,7 +40,7 @@ PlatformDebugLibIoPortConstructor ( VOID ) { - return EFI_SUCCESS; + return RETURN_SUCCESS; } /**