From nobody Sat Nov 2 12:18:52 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1489627577079162.38986587157456; Wed, 15 Mar 2017 18:26:17 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 1C2C8803FA; Wed, 15 Mar 2017 18:26:15 -0700 (PDT) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 BB754803F9 for ; Wed, 15 Mar 2017 18:26:13 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2017 18:26:13 -0700 Received: from shwdeopenpsi114.ccr.corp.intel.com ([10.239.157.135]) by orsmga003.jf.intel.com with ESMTP; 15 Mar 2017 18:26:12 -0700 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489627573; x=1521163573; h=from:to:cc:subject:date:message-id; bh=SCm14qOyVHXEFVS+wAbVu0ld9a3aBejWct3PJ/I1JvU=; b=iaFEFUdwzNAbZ7oNmWA6XD48sdgN4osOUZeXRR/8XC/a1yZ1EM2UGnc3 UWjzOi3D66rScFAmPFHi8/8C2VxRlg==; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,170,1486454400"; d="scan'208";a="944810073" From: Dandan Bi To: edk2-devel@lists.01.org Date: Thu, 16 Mar 2017 09:25:52 +0800 Message-Id: <1489627552-10288-1-git-send-email-dandan.bi@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 Subject: [edk2] [patch] OvmfPkg/QemuFwCfgS3Lib: Fix VS tool chain build failure 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: , Cc: Jordan Justen , Laszlo Ersek MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Cc: Jordan Justen Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Jordan Justen --- OvmfPkg/Include/Library/QemuFwCfgS3Lib.h | 10 +++++----- OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Base.c | 3 ++- OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3BasePei.c | 8 ++++---- OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c | 10 +++++----- OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Pei.c | 2 +- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/OvmfPkg/Include/Library/QemuFwCfgS3Lib.h b/OvmfPkg/Include/Lib= rary/QemuFwCfgS3Lib.h index 76c8554..432e3c9 100644 --- a/OvmfPkg/Include/Library/QemuFwCfgS3Lib.h +++ b/OvmfPkg/Include/Library/QemuFwCfgS3Lib.h @@ -153,12 +153,12 @@ VOID (EFIAPI FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION) ( QemuFwCfgS3CallWhenBootScriptReady() ca= nnot be rolled back. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3CallWhenBootScriptReady ( IN FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION *Callback, IN OUT VOID *Context, OPTIONAL IN UINTN ScratchBufferSize ); @@ -202,12 +202,12 @@ QemuFwCfgS3CallWhenBootScriptReady ( @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is larger than ScratchBufferSize. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptWriteBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ); =20 @@ -249,12 +249,12 @@ QemuFwCfgS3ScriptWriteBytes ( @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is larger than ScratchBufferSize. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptReadBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ); =20 @@ -289,12 +289,12 @@ QemuFwCfgS3ScriptReadBytes ( =20 @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is too large. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptSkipBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ); =20 @@ -347,12 +347,12 @@ QemuFwCfgS3ScriptSkipBytes ( wholly contained in the ScratchBufferS= ize bytes at ScratchBuffer. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptCheckValue ( IN VOID *ScratchData, IN UINT8 ValueSize, IN UINT64 ValueMask, IN UINT64 Value diff --git a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Base.c b/OvmfPkg/Lib= rary/QemuFwCfgS3Lib/QemuFwCfgS3Base.c index 7b71305..7fa1200 100644 --- a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Base.c +++ b/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Base.c @@ -95,12 +95,13 @@ QemuFwCfgS3Enabled ( QemuFwCfgS3CallWhenBootScriptReady() ca= nnot be rolled back. =20 @return Error codes from underlying functions. **/ -EFIAPI + RETURN_STATUS +EFIAPI QemuFwCfgS3CallWhenBootScriptReady ( IN FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION *Callback, IN OUT VOID *Context, OPTIONAL IN UINTN ScratchBufferSize ) diff --git a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3BasePei.c b/OvmfPkg/= Library/QemuFwCfgS3Lib/QemuFwCfgS3BasePei.c index 674929e..bdad448 100644 --- a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3BasePei.c +++ b/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3BasePei.c @@ -54,12 +54,12 @@ @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is larger than ScratchBufferSize. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptWriteBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ) { @@ -105,12 +105,12 @@ QemuFwCfgS3ScriptWriteBytes ( @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is larger than ScratchBufferSize. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptReadBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ) { @@ -149,12 +149,12 @@ QemuFwCfgS3ScriptReadBytes ( =20 @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is too large. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptSkipBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ) { @@ -211,12 +211,12 @@ QemuFwCfgS3ScriptSkipBytes ( wholly contained in the ScratchBufferS= ize bytes at ScratchBuffer. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptCheckValue ( IN VOID *ScratchData, IN UINT8 ValueSize, IN UINT64 ValueMask, IN UINT64 Value diff --git a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c b/OvmfPkg/Libr= ary/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c index 0bd6cf9..3fef2e3 100644 --- a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c +++ b/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Dxe.c @@ -137,12 +137,12 @@ S3SaveStateInstalledNotify ( QemuFwCfgS3CallWhenBootScriptReady() ca= nnot be rolled back. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3CallWhenBootScriptReady ( IN FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION *Callback, IN OUT VOID *Context, OPTIONAL IN UINTN ScratchBufferSize ) @@ -278,12 +278,12 @@ FreeDmaAccess: @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is larger than ScratchBufferSize. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptWriteBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ) { @@ -426,12 +426,12 @@ QemuFwCfgS3ScriptWriteBytes ( @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is larger than ScratchBufferSize. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptReadBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ) { @@ -564,12 +564,12 @@ QemuFwCfgS3ScriptReadBytes ( =20 @retval RETURN_BAD_BUFFER_SIZE NumberOfBytes is too large. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptSkipBytes ( IN INT32 FirmwareConfigItem, IN UINTN NumberOfBytes ) { @@ -714,12 +714,12 @@ QemuFwCfgS3ScriptSkipBytes ( wholly contained in the ScratchBufferS= ize bytes at ScratchBuffer. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3ScriptCheckValue ( IN VOID *ScratchData, IN UINT8 ValueSize, IN UINT64 ValueMask, IN UINT64 Value diff --git a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Pei.c b/OvmfPkg/Libr= ary/QemuFwCfgS3Lib/QemuFwCfgS3Pei.c index d447e36..031e9f2 100644 --- a/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Pei.c +++ b/OvmfPkg/Library/QemuFwCfgS3Lib/QemuFwCfgS3Pei.c @@ -72,12 +72,12 @@ QemuFwCfgS3CallWhenBootScriptReady() ca= nnot be rolled back. =20 @return Error codes from underlying functions. **/ -EFIAPI RETURN_STATUS +EFIAPI QemuFwCfgS3CallWhenBootScriptReady ( IN FW_CFG_BOOT_SCRIPT_CALLBACK_FUNCTION *Callback, IN OUT VOID *Context, OPTIONAL IN UINTN ScratchBufferSize ) --=20 1.9.5.msysgit.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel