Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: Add __KERNEL__ guards to exported headers

Signed-off-by: Avi Kivity <avi@redhat.com>

+8
+4
arch/ia64/include/asm/kvm_para.h
··· 19 19 * 20 20 */ 21 21 22 + #ifdef __KERNEL__ 23 + 22 24 static inline unsigned int kvm_arch_para_features(void) 23 25 { 24 26 return 0; 25 27 } 28 + 29 + #endif 26 30 27 31 #endif
+4
arch/s390/include/asm/kvm_para.h
··· 13 13 #ifndef __S390_KVM_PARA_H 14 14 #define __S390_KVM_PARA_H 15 15 16 + #ifdef __KERNEL__ 17 + 16 18 /* 17 19 * Hypercalls for KVM on s390. The calling convention is similar to the 18 20 * s390 ABI, so we use R2-R6 for parameters 1-5. In addition we use R1 ··· 148 146 { 149 147 return 0; 150 148 } 149 + 150 + #endif 151 151 152 152 #endif /* __S390_KVM_PARA_H */