kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kvm: make asm-generic/kvm_para.h have an ifdef __KERNEL__ block
@ 2012-05-18 17:59 Paul Gortmaker
  2012-05-18 18:42 ` Sam Ravnborg
  2012-05-21 14:49 ` Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Gortmaker @ 2012-05-18 17:59 UTC (permalink / raw)
  To: kvm; +Cc: Avi Kivity, Arnd Bergmann, linux-kernel, Paul Gortmaker

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>

diff --git a/include/asm-generic/kvm_para.h b/include/asm-generic/kvm_para.h
index 9a7bbad..5cba37f 100644
--- a/include/asm-generic/kvm_para.h
+++ b/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
-- 
1.7.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-05-21 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18 17:59 [PATCH] kvm: make asm-generic/kvm_para.h have an ifdef __KERNEL__ block Paul Gortmaker
2012-05-18 18:42 ` Sam Ravnborg
2012-05-18 22:24   ` Paul Gortmaker
2012-05-21 14:49 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).