KVM: make asm-generic/kvm_para.h have an ifdef __KERNEL__ block
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 18 May 2012 17:59:39 +0000 (13:59 -0400)
committerAvi Kivity <avi@redhat.com>
Mon, 21 May 2012 14:47:52 +0000 (17:47 +0300)
There are two functions in this asm-generic file.  Looking at
other arch which do not use the generic version, these two fcns
are within an #ifdef __KERNEL__ block, so make the generic one
consistent with those.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/asm-generic/kvm_para.h

index 9a7bbadb688d174c99a37a3861fdbba9f52fa1ac..5cba37f9eae1ac50d02d47c6c610216d1e0ad7b5 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _ASM_GENERIC_KVM_PARA_H
 #define _ASM_GENERIC_KVM_PARA_H
 
+#ifdef __KERNEL__
 
 /*
  * This function is used by architectures that support kvm to avoid issuing
@@ -16,4 +17,6 @@ static inline unsigned int kvm_arch_para_features(void)
        return 0;
 }
 
+#endif /* _KERNEL__ */
+
 #endif