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>
#define __POWERPC_KVM_PARA_H__
#include <linux/types.h>
-#include <linux/of.h>
struct kvm_vcpu_arch_shared {
__u64 scratch1;
#ifdef CONFIG_KVM_GUEST
+#include <linux/of.h>
+
static inline int kvm_para_available(void)
{
struct device_node *hyper_node;