51 lines
1.5 KiB
Diff
51 lines
1.5 KiB
Diff
|
From d9edd0b560db7d32b8b93e82d7051d5cf58e9744 Mon Sep 17 00:00:00 2001
|
||
|
From: Paolo Bonzini <pbonzini@redhat.com>
|
||
|
Date: Thu, 16 Nov 2017 20:52:57 +0100
|
||
|
Subject: [PATCH 1/3] OvmfPkg: make it a proper BASE library
|
||
|
|
||
|
Remove Uefi.h, which includes UefiSpec.h, and change the
|
||
|
return value to match RETURN_STATUS.
|
||
|
|
||
|
Contributed-under: TianoCore Contribution Agreement 1.1
|
||
|
Cc: Laszlo Ersek <lersek@redhat.com>
|
||
|
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
|
||
|
Cc: Jordan Justen (Intel address) <jordan.l.justen@intel.com>
|
||
|
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
||
|
---
|
||
|
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 <Base.h>
|
||
|
-#include <Uefi.h>
|
||
|
#include <Library/DebugLib.h>
|
||
|
#include <Library/BaseLib.h>
|
||
|
#include <Library/IoLib.h>
|
||
|
@@ -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;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
--
|
||
|
2.14.3
|
||
|
|