x86/kvm: Do not use BIT() in user-exported header
authorBorislav Petkov <bp@suse.de>
Thu, 5 May 2016 08:18:23 +0000 (10:18 +0200)
committerRadim Krčmář <rkrcmar@redhat.com>
Mon, 9 May 2016 14:38:54 +0000 (16:38 +0200)
Apparently, we're not exporting BIT() to userspace.

Reported-by: Brooks Moses <bmoses@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/uapi/asm/kvm.h

index cd54147cb365fb3622121c782eee8e7fb3ddcc77..739c0c5940226d7af38d2ab4bc068f7772f1a8c7 100644 (file)
@@ -216,9 +216,9 @@ struct kvm_cpuid_entry2 {
        __u32 padding[3];
 };
 
-#define KVM_CPUID_FLAG_SIGNIFCANT_INDEX                BIT(0)
-#define KVM_CPUID_FLAG_STATEFUL_FUNC           BIT(1)
-#define KVM_CPUID_FLAG_STATE_READ_NEXT         BIT(2)
+#define KVM_CPUID_FLAG_SIGNIFCANT_INDEX                (1 << 0)
+#define KVM_CPUID_FLAG_STATEFUL_FUNC           (1 << 1)
+#define KVM_CPUID_FLAG_STATE_READ_NEXT         (1 << 2)
 
 /* for KVM_SET_CPUID2 */
 struct kvm_cpuid2 {