From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=pbonzini@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3BB4D21B00DE8 for ; Thu, 16 Nov 2017 12:27:01 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7DBF5F7B5; Thu, 16 Nov 2017 20:31:10 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-117-65.ams2.redhat.com [10.36.117.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id A1B79B32BA; Thu, 16 Nov 2017 20:31:04 +0000 (UTC) From: Paolo Bonzini To: edk2-devel@lists.01.org Cc: Laszlo Ersek , Ard Biesheuvel , Jordan Justen Date: Thu, 16 Nov 2017 21:30:58 +0100 Message-Id: <20171116203100.28085-2-pbonzini@redhat.com> In-Reply-To: <20171116203100.28085-1-pbonzini@redhat.com> References: <20171116203100.28085-1-pbonzini@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 16 Nov 2017 20:31:10 +0000 (UTC) Subject: [PATCH v3 1/3] OvmfPkg: make PlatformDebugLibIoPort a proper BASE library X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2017 20:27:01 -0000 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 Tested-by: Laszlo Ersek Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Jordan Justen (Intel address) Signed-off-by: Paolo Bonzini --- 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; } /** -- 2.14.3