render / rpms / edk2

Forked from rpms/edk2 3 months ago
Clone

Blame 0022-OvmfPkg-make-it-a-proper-BASE-library.patch

Paolo Bonzini 2e34e0
From d9edd0b560db7d32b8b93e82d7051d5cf58e9744 Mon Sep 17 00:00:00 2001
Paolo Bonzini 2e34e0
From: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini 2e34e0
Date: Thu, 16 Nov 2017 20:52:57 +0100
Paolo Bonzini 2e34e0
Subject: [PATCH 1/3] OvmfPkg: make it a proper BASE library
Paolo Bonzini 2e34e0
Paolo Bonzini 2e34e0
Remove Uefi.h, which includes UefiSpec.h, and change the
Paolo Bonzini 2e34e0
return value to match RETURN_STATUS.
Paolo Bonzini 2e34e0
Paolo Bonzini 2e34e0
Contributed-under: TianoCore Contribution Agreement 1.1
Paolo Bonzini 2e34e0
Cc: Laszlo Ersek <lersek@redhat.com>
Paolo Bonzini 2e34e0
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Paolo Bonzini 2e34e0
Cc: Jordan Justen (Intel address) <jordan.l.justen@intel.com>
Paolo Bonzini 2e34e0
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo Bonzini 2e34e0
---
Paolo Bonzini 2e34e0
 OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c | 5 ++---
Paolo Bonzini 2e34e0
 1 file changed, 2 insertions(+), 3 deletions(-)
Paolo Bonzini 2e34e0
Paolo Bonzini 2e34e0
diff --git a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
Paolo Bonzini 2e34e0
index 5435767c1c..74f4d9c2d6 100644
Paolo Bonzini 2e34e0
--- a/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
Paolo Bonzini 2e34e0
+++ b/OvmfPkg/Library/PlatformDebugLibIoPort/DebugLib.c
Paolo Bonzini 2e34e0
@@ -15,7 +15,6 @@
Paolo Bonzini 2e34e0
 **/
Paolo Bonzini 2e34e0
 
Paolo Bonzini 2e34e0
 #include <Base.h>
Paolo Bonzini 2e34e0
-#include <Uefi.h>
Paolo Bonzini 2e34e0
 #include <Library/DebugLib.h>
Paolo Bonzini 2e34e0
 #include <Library/BaseLib.h>
Paolo Bonzini 2e34e0
 #include <Library/IoLib.h>
Paolo Bonzini 2e34e0
@@ -32,7 +31,7 @@
Paolo Bonzini 2e34e0
 /**
Paolo Bonzini 2e34e0
   This constructor function does not have to do anything.
Paolo Bonzini 2e34e0
 
Paolo Bonzini 2e34e0
-  @retval EFI_SUCCESS   The constructor always returns RETURN_SUCCESS.
Paolo Bonzini 2e34e0
+  @retval RETURN_SUCCESS   The constructor always returns RETURN_SUCCESS.
Paolo Bonzini 2e34e0
 
Paolo Bonzini 2e34e0
 **/
Paolo Bonzini 2e34e0
 RETURN_STATUS
Paolo Bonzini 2e34e0
@@ -41,7 +40,7 @@ PlatformDebugLibIoPortConstructor (
Paolo Bonzini 2e34e0
   VOID
Paolo Bonzini 2e34e0
   )
Paolo Bonzini 2e34e0
 {
Paolo Bonzini 2e34e0
-  return EFI_SUCCESS;
Paolo Bonzini 2e34e0
+  return RETURN_SUCCESS;
Paolo Bonzini 2e34e0
 }
Paolo Bonzini 2e34e0
 
Paolo Bonzini 2e34e0
 /**
Paolo Bonzini 2e34e0
-- 
Paolo Bonzini 2e34e0
2.14.3
Paolo Bonzini 2e34e0