diff options
author | 2017-08-10 14:14:39 +0200 | |
---|---|---|
committer | 2017-08-15 18:56:14 +0200 | |
commit | 076b925d51e83c1939bf796c4c5a33f482f986b3 (patch) | |
tree | 7b84ed68621b54e6c0a93c4a58c586bb66a6cf25 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kvm: x86: Disallow illegal IA32_APIC_BASE MSR values (diff) | |
download | wireguard-linux-076b925d51e83c1939bf796c4c5a33f482f986b3.tar.xz wireguard-linux-076b925d51e83c1939bf796c4c5a33f482f986b3.zip |
kvm: avoid uninitialized-variable warnings
When PAGE_OFFSET is not a compile-time constant, we run into
warnings from the use of kvm_is_error_hva() that the compiler
cannot optimize out:
arch/arm/kvm/../../../virt/kvm/kvm_main.c: In function '__kvm_gfn_to_hva_cache_init':
arch/arm/kvm/../../../virt/kvm/kvm_main.c:1978:14: error: 'nr_pages_avail' may be used uninitialized in this function [-Werror=maybe-uninitialized]
arch/arm/kvm/../../../virt/kvm/kvm_main.c: In function 'gfn_to_page_many_atomic':
arch/arm/kvm/../../../virt/kvm/kvm_main.c:1660:5: error: 'entry' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This adds fake initializations to the two instances I ran into.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions