KVM: Add __KERNEL__ guards to exported headers
authorAvi Kivity <avi@redhat.com>
Sun, 16 Aug 2009 12:31:11 +0000 (15:31 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 07:46:48 +0000 (10:46 +0300)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/include/asm/kvm_para.h
arch/s390/include/asm/kvm_para.h

index 0d6d8ca07b8ce194eb26fb8e1aadb07c3d41fe25..1588aee781a28956411a8800a2ddb98abbab93bf 100644 (file)
  *
  */
 
+#ifdef __KERNEL__
+
 static inline unsigned int kvm_arch_para_features(void)
 {
        return 0;
 }
 
 #endif
+
+#endif
index 2c503796b619d6c5869aa21d04806232c34878f6..6964db226f83ee3d27e7bde23e5269bef95d3e61 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef __S390_KVM_PARA_H
 #define __S390_KVM_PARA_H
 
+#ifdef __KERNEL__
+
 /*
  * Hypercalls for KVM on s390. The calling convention is similar to the
  * s390 ABI, so we use R2-R6 for parameters 1-5. In addition we use R1
@@ -147,4 +149,6 @@ static inline unsigned int kvm_arch_para_features(void)
        return 0;
 }
 
+#endif
+
 #endif /* __S390_KVM_PARA_H */