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") -- Cheers, Stephen Rothwell
Attachment:
pgp16Cpo8hJxA.pgp
Description: OpenPGP digital signature