summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/kvm_para.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-08-16 16:31:11 +0400
committerAvi Kivity <avi@redhat.com>2009-09-10 11:46:48 +0400
commit27c238106862fb0dd3e229c48c1ef56502b0ec88 (patch)
tree4e14454376a58947e67b308a5e682bfaff64d349 /arch/s390/include/asm/kvm_para.h
parentda18acffc3f13c4f187c20bc5dcfcb110b374b48 (diff)
downloadlinux-27c238106862fb0dd3e229c48c1ef56502b0ec88.tar.xz
KVM: Add __KERNEL__ guards to exported headers
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/include/asm/kvm_para.h')
-rw-r--r--arch/s390/include/asm/kvm_para.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kvm_para.h b/arch/s390/include/asm/kvm_para.h
index 2c503796b619..6964db226f83 100644
--- a/arch/s390/include/asm/kvm_para.h
+++ b/arch/s390/include/asm/kvm_para.h
@@ -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 */