瀏覽代碼

KVM: make asm-generic/kvm_para.h have an ifdef __KERNEL__ block

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>
Paul Gortmaker 13 年之前
父節點
當前提交
322728e55a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/asm-generic/kvm_para.h

+ 3 - 0
include/asm-generic/kvm_para.h

@@ -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