diff options
| author | Sean Christopherson <[email protected]> | 2020-05-04 15:35:06 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-05-04 15:58:55 +0000 |
| commit | f9336e3281880b683137bc18f91848ac34af84c3 (patch) | |
| tree | c7085ddbb5e7fd8ffca887bce39a61a499c209b3 /tools/perf/scripts/python/stat-cpi.py | |
| parent | Merge tag 'kvm-ppc-fixes-5.7-1' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-f9336e3281880b683137bc18f91848ac34af84c3.tar.gz kernel-f9336e3281880b683137bc18f91848ac34af84c3.zip | |
KVM: nVMX: Replace a BUG_ON(1) with BUG() to squash clang warning
Use BUG() in the impossible-to-hit default case when switching on the
scope of INVEPT to squash a warning with clang 11 due to clang treating
the BUG_ON() as conditional.
>> arch/x86/kvm/vmx/nested.c:5246:3: warning: variable 'roots_to_free'
is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
BUG_ON(1);
Reported-by: kbuild test robot <[email protected]>
Fixes: ce8fe7b77bd8 ("KVM: nVMX: Free only the affected contexts when emulating INVEPT")
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
