Hello there, On Mon, May 23, 2016 at 3:52 PM, Thomas Huth <thuth@xxxxxxxxxx> wrote: > This define in the same file also looks quite suspicious: > > #define AVIC_HPA_MASK ~((0xFFFULL << 52) || 0xFFF) > > Strange that you did not get a warning on that one, too? I did, but the warnings were buried in a morass of other warnings, so I didn't notice it ;-< [linux-next/arch/x86/kvm/svm.c:1075]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses. [linux-next/arch/x86/kvm/svm.c:1076]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses. [linux-next/arch/x86/kvm/svm.c:1077]: (style) Boolean result is used in bitwise operation. Clarify expression with parentheses. Three warnings, one for each use of the macro AVIC_HPA_MASK. My apologies for not spotting this sooner. In order to avoid further public embarrassment, here are a couple of other minor things I found in x86/kvm/*.c, which might be worth fixing. arch/x86/kvm/cpuid.c:867]: (style) Variable 'function' is assigned a value that is never used. arch/x86/kvm/x86.c:2142]: (style) Variable 'gpa_offset' is assigned a value that is never used. Regards David Binderman -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html