From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.4908.1636660173321741747 for ; Thu, 11 Nov 2021 11:49:33 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: michael.d.kinney@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10165"; a="233246197" X-IronPort-AV: E=Sophos;i="5.87,226,1631602800"; d="scan'208";a="233246197" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2021 11:49:32 -0800 X-IronPort-AV: E=Sophos;i="5.87,226,1631602800"; d="scan'208";a="492666470" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.212.187.106]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2021 11:49:32 -0800 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Ard Biesheuvel , Jiewen Yao Subject: [Patch edk2-stable202111 1/1] OvmfPkg/Library/ResetSystemLib: Fix Microvm VS2019 NOOPT build issue Date: Thu, 11 Nov 2021 11:49:23 -0800 Message-Id: <20211111194923.1358-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.32.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3731 Fix VS2019 NOOPT build issues with OvmfPkg/Microvm/MicrovmX64.dsc by fixing typecast of MICROVM_GED_MMIO_BASE_REGS to a VOID *. Cc: Gerd Hoffmann Cc: Ard Biesheuvel Cc: Jiewen Yao Signed-off-by: Michael D Kinney --- OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c b/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c index 5c714cf06a54..94dc894ded73 100644 --- a/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c +++ b/OvmfPkg/Library/ResetSystemLib/ResetSystemLibMicrovm.c @@ -18,7 +18,7 @@ static UINTN MicrovmGedBase (VOID) { - VOID *Address = (VOID*) MICROVM_GED_MMIO_BASE_REGS; + VOID *Address = (VOID*)(UINTN) MICROVM_GED_MMIO_BASE_REGS; if (EfiGoneVirtual ()) { EfiConvertPointer (0, &Address); -- 2.32.0.windows.1