On 11/4/21 19:17, Nathan Chancellor wrote:
Hi Greg and Sasha, Please apply commit 3d5e7a28b1ea ("KVM: x86: avoid warning with -Wbitwise-instead-of-logical") to 5.10, 5.14, and 5.15, where it resolves a build error with tip of tree clang due to -Werror: arch/x86/kvm/mmu/mmu.c:3548:15: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] reserved |= __is_bad_mt_xwr(rsvd_check, sptes[level - 1]) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ || arch/x86/kvm/mmu/mmu.c:3548:15: note: cast one or both operands to int to silence this warning 1 error generated. It applies cleanly to 5.14 and 5.15 and I have attached a backport for 5.10. I have added Paolo in case he has any objections to this.
No problem. Acked-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> Paolo