Re: arch/x86/kvm/svm.c:3600: possible bad operator ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 23/05/2016 13:22, David Binderman wrote:
> Hello there,
> 
> arch/x86/kvm/svm.c:3600:45: warning: logical ‘and’ applied to
> non-boolean constant [-Wlogical-op]
> 
> Source code is
> 
>     u32 index = svm->vmcb->control.exit_info_2 && 0xFF;
> 
> Maybe better code
> 
>     u32 index = svm->vmcb->control.exit_info_2 & 0xFF;

Yes, there's a bug there.  However it's only affecting a tracepoint,
which is why it probably wasn't noticed.

Thanks,

Paolo
--
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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux