[PATCH kvm-unit-tests] x86: fix clang warning

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

 



x86/vmx.c:1502:69: error: use of logical
---
 x86/vmx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x86/vmx.c b/x86/vmx.c
index fd845d7..a13f2c9 100644
--- a/x86/vmx.c
+++ b/x86/vmx.c
@@ -1499,7 +1499,8 @@ static int test_vmxon_bad_cr(int cr_number, unsigned long orig_cr,
 		 * bit set at all levels.
 		 */
 		if ((cr_number == 0 && (bit == X86_CR0_PE || bit == X86_CR0_PG)) ||
-		    (cr_number == 4 && (bit == X86_CR4_PAE || bit == X86_CR4_SMAP || X86_CR4_SMEP)))
+		    (cr_number == 4 && (bit == X86_CR4_PAE || bit == X86_CR4_SMAP ||
+					bit == X86_CR4_SMEP)))
 			continue;
 
 		if (!(bit & required1) && !(bit & disallowed1)) {
-- 
2.36.1




[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