KVM: Put kvm_para.h include outside __KERNEL__
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Tue, 15 Jan 2008 15:10:15 +0000 (13:10 -0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 16:01:22 +0000 (18:01 +0200)
kvm_para.h potentially contains definitions that are to be used by userspace,
so it should not be included inside the __KERNEL__ block. To protect its own
data structures, kvm_para.h already includes its own __KERNEL__ block.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Acked-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
include/linux/kvm_para.h

index 6af91a506fbf2d71a271b59f6de2a369b6f7a64b..5497aac0d2f829d4efe3df98f8c34496d947243f 100644 (file)
 
 #define KVM_HC_VAPIC_POLL_IRQ            1
 
-#ifdef __KERNEL__
 /*
  * hypercalls use architecture specific
  */
 #include <asm/kvm_para.h>
 
+#ifdef __KERNEL__
 static inline int kvm_para_has_feature(unsigned int feature)
 {
        if (kvm_arch_para_features() & (1UL << feature))