KVM: PPC: Move of include to __KERNEL__ section
authorAlexander Graf <agraf@suse.de>
Fri, 3 Sep 2010 08:22:19 +0000 (10:22 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:23 +0000 (10:52 +0200)
We have to protect the include for linux/of.h by __KERNEL__ so it doesn't
accidently get referenced outside.

This patch fixes this and makes the tree compile again.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_para.h

index d79fd09109649acfd16e539e6587bda594b9128c..50533f9adf40548671c6b28473d783d950b40156 100644 (file)
@@ -21,7 +21,6 @@
 #define __POWERPC_KVM_PARA_H__
 
 #include <linux/types.h>
-#include <linux/of.h>
 
 struct kvm_vcpu_arch_shared {
        __u64 scratch1;
@@ -54,6 +53,8 @@ struct kvm_vcpu_arch_shared {
 
 #ifdef CONFIG_KVM_GUEST
 
+#include <linux/of.h>
+
 static inline int kvm_para_available(void)
 {
        struct device_node *hyper_node;