diff options
author | Jinrong Liang <[email protected]> | 2022-01-19 22:03:25 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-01-20 12:12:47 -0500 |
commit | 83a34ad848937462aa64fa3d48f8c0b4034f2503 (patch) | |
tree | 306db18edda91bec1b584254b43d9b2e373fbffe /lib/mpi/mpi-sub-ui.c | |
parent | a0f4ba7f51ea736a6b4ccf58563507d7af9128fb (diff) |
selftests: kvm/x86: Fix the warning in lib/x86_64/processor.c
The following warning appears when executing
make -C tools/testing/selftests/kvm
include/x86_64/processor.h:290:2: warning: 'ecx' may be used uninitialized in this
function [-Wmaybe-uninitialized]
asm volatile("cpuid"
^~~
lib/x86_64/processor.c:1523:21: note: 'ecx' was declared here
uint32_t eax, ebx, ecx, edx, max_ext_leaf;
Just initialize ecx to remove this warning.
Fixes: c8cc43c1eae2 ("selftests: KVM: avoid failures due to reserved HyperTransport region")
Signed-off-by: Jinrong Liang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions