Commit 26e673c3 authored by Alexander Graf's avatar Alexander Graf Committed by Avi Kivity

KVM: PPC: Move of include to __KERNEL__ section

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent d1e87c7e
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#define __POWERPC_KVM_PARA_H__ #define __POWERPC_KVM_PARA_H__
#include <linux/types.h> #include <linux/types.h>
#include <linux/of.h>
struct kvm_vcpu_arch_shared { struct kvm_vcpu_arch_shared {
__u64 scratch1; __u64 scratch1;
...@@ -54,6 +53,8 @@ struct kvm_vcpu_arch_shared { ...@@ -54,6 +53,8 @@ struct kvm_vcpu_arch_shared {
#ifdef CONFIG_KVM_GUEST #ifdef CONFIG_KVM_GUEST
#include <linux/of.h>
static inline int kvm_para_available(void) static inline int kvm_para_available(void)
{ {
struct device_node *hyper_node; struct device_node *hyper_node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment