KVM: Add __KERNEL__ guards to exported headers
Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -19,9 +19,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
static inline unsigned int kvm_arch_para_features(void)
|
static inline unsigned int kvm_arch_para_features(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@@ -13,6 +13,8 @@
|
|||||||
#ifndef __S390_KVM_PARA_H
|
#ifndef __S390_KVM_PARA_H
|
||||||
#define __S390_KVM_PARA_H
|
#define __S390_KVM_PARA_H
|
||||||
|
|
||||||
|
#ifdef __KERNEL__
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Hypercalls for KVM on s390. The calling convention is similar to the
|
* 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
|
* 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __S390_KVM_PARA_H */
|
#endif /* __S390_KVM_PARA_H */
|
||||||
|
Reference in New Issue
Block a user