diff options
author | 2022-12-13 00:16:44 +0000 | |
---|---|---|
committer | 2022-12-27 06:00:46 -0500 | |
commit | 1525429fe5cb8e23b74c6dd473bb477a35906704 (patch) | |
tree | 6c4382bd6db31090ad1902107d7281f586617920 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: selftests: Use pattern matching in .gitignore (diff) | |
download | wireguard-linux-1525429fe5cb8e23b74c6dd473bb477a35906704.tar.xz wireguard-linux-1525429fe5cb8e23b74c6dd473bb477a35906704.zip |
KVM: selftests: Fix a typo in x86-64's kvm_get_cpu_address_width()
Fix a == vs. = typo in kvm_get_cpu_address_width() that results in
@pa_bits being left unset if the CPU doesn't support enumerating its
MAX_PHY_ADDR. Flagged by clang's unusued-value warning.
lib/x86_64/processor.c:1034:51: warning: expression result unused [-Wunused-value]
*pa_bits == kvm_cpu_has(X86_FEATURE_PAE) ? 36 : 32;
Fixes: 3bd396353d18 ("KVM: selftests: Add X86_FEATURE_PAE and use it calc "fallback" MAXPHYADDR")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20221213001653.3852042-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions