Skip to content

Commit

Permalink
KVM: PPC: Move of include to __KERNEL__ section
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Graf authored and Avi Kivity committed Oct 24, 2010
1 parent d1e87c7 commit 26e673c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/include/asm/kvm_para.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#define __POWERPC_KVM_PARA_H__

#include <linux/types.h>
#include <linux/of.h>

struct kvm_vcpu_arch_shared {
__u64 scratch1;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 26e673c

Please sign in to comment.