Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:testing-xen-unstable
xen
ovmf.MemoryStateToGhcbOp.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ovmf.MemoryStateToGhcbOp.patch of Package xen
From: Olaf Hering <olaf@aepfle.de> Date: Tue, 20 Jun 2023 12:05:39 +0000 Subject: MemoryStateToGhcbOp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /home/abuild/rpmbuild/BUILD/xen-4.18.20230619T122059.42473bae/non-dbg/tools/firmware/ovmf-dir-remote/OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c:164:39: error: ‘Cmd’ may be used uninitialized in this function [-Werror=maybe-uninitialized] Info->Entry[i].Operation = MemoryStateToGhcbOp (State); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/abuild/rpmbuild/BUILD/xen-4.18.20230619T122059.42473bae/non-dbg/tools/firmware/ovmf-dir-remote/OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c:31:10: note: ‘Cmd’ was declared here UINTN Cmd; ^~~ Signed-off-by: Olaf Hering <olaf@aepfle.de> --- OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c +++ b/OvmfPkg/Library/BaseMemEncryptSevLib/X64/SnpPageStateChangeInternal.c @@ -19,25 +19,25 @@ #include <Register/Amd/Msr.h> #include "SnpPageStateChange.h" #define PAGES_PER_LARGE_ENTRY 512 STATIC UINTN MemoryStateToGhcbOp ( IN SEV_SNP_PAGE_STATE State ) { - UINTN Cmd; + UINTN Cmd = 0; switch (State) { case SevSnpPageShared: Cmd = SNP_PAGE_STATE_SHARED; break; case SevSnpPagePrivate: Cmd = SNP_PAGE_STATE_PRIVATE; break; default: ASSERT (0); } return Cmd; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor