Skip to contentSkip to conversation

linux-next: build warnings after merge of the kvm tree

DISCUSSION Stephen Rothwell 1 participant 1 message Jan 24, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) produced these warnings:

arch/x86/kvm/svm.c: In function 'svm_set_msr':
arch/x86/kvm/svm.c:4289:14: warning: '~' on a boolean expression [-Wbool-operation]
4289 | if (data & ~kvm_spec_ctrl_valid_bits(vcpu))
| ^
arch/x86/kvm/svm.c:4289:14: note: did you mean to use logical not?

 4289 |   if (data & ~kvm_spec_ctrl_valid_bits(vcpu))
      |              ^
      |              !

arch/x86/kvm/vmx/vmx.c: In function 'vmx_set_msr':
arch/x86/kvm/vmx/vmx.c:2001:14: warning: '~' on a boolean expression [-Wbool-operation]
2001 | if (data & ~kvm_spec_ctrl_valid_bits(vcpu))
| ^
arch/x86/kvm/vmx/vmx.c:2001:14: note: did you mean to use logical not?

 2001 |   if (data & ~kvm_spec_ctrl_valid_bits(vcpu))
      |              ^
      |              !

Introduced by commit

e71ae535bc24 ("KVM: x86: avoid incorrect writes to host MSR_IA32_SPEC_CTRL")

Signature · 2 lines
Cheers,
Stephen Rothwell