All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: PPC: Move of include to __KERNEL__ section
@ 2010-09-04  9:06 Alexander Graf
  0 siblings, 0 replies; 5+ messages in thread
From: Alexander Graf @ 2010-09-04  9:06 UTC (permalink / raw)
  To: kvm-ppc

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>

---

Since this issue breaks linux-next, please apply ASAP.

Alex

---
 arch/powerpc/include/asm/kvm_para.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h
index d79fd09..50533f9 100644
--- a/arch/powerpc/include/asm/kvm_para.h
+++ b/arch/powerpc/include/asm/kvm_para.h
@@ -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;
-- 
1.6.0.2


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

* [PATCH] KVM: PPC: Move of include to __KERNEL__ section
  2010-09-04  9:06 Alexander Graf
@ 2010-09-04  9:09 ` Alexander Graf
  -1 siblings, 0 replies; 5+ messages in thread
From: Alexander Graf @ 2010-09-04  9:09 UTC (permalink / raw)
  To: kvm-ppc-u79uwXL29TY76Z2rM5mHXA; +Cc: kvm-u79uwXL29TY76Z2rM5mHXA

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-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
Signed-off-by: Alexander Graf <agraf-l3A5Bk7waGM@public.gmane.org>

---

Since this issue breaks linux-next, please apply ASAP.

Alex

---
 arch/powerpc/include/asm/kvm_para.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h
index d79fd09..50533f9 100644
--- a/arch/powerpc/include/asm/kvm_para.h
+++ b/arch/powerpc/include/asm/kvm_para.h
@@ -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;
-- 
1.6.0.2

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

* [PATCH] KVM: PPC: Move of include to __KERNEL__ section
@ 2010-09-04  9:09 ` Alexander Graf
  0 siblings, 0 replies; 5+ messages in thread
From: Alexander Graf @ 2010-09-04  9:09 UTC (permalink / raw)
  To: kvm-ppc-u79uwXL29TY76Z2rM5mHXA; +Cc: kvm-u79uwXL29TY76Z2rM5mHXA

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>

---

Since this issue breaks linux-next, please apply ASAP.

Alex

---
 arch/powerpc/include/asm/kvm_para.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h
index d79fd09..50533f9 100644
--- a/arch/powerpc/include/asm/kvm_para.h
+++ b/arch/powerpc/include/asm/kvm_para.h
@@ -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;
-- 
1.6.0.2


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

* Re: [PATCH] KVM: PPC: Move of include to __KERNEL__ section
       [not found] ` <1283591368-2984-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
@ 2010-09-05  7:57     ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2010-09-05  7:57 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA

  On 09/04/2010 12:09 PM, Alexander Graf wrote:
> 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-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
> Signed-off-by: Alexander Graf<agraf-l3A5Bk7waGM@public.gmane.org>
>
> ---
>
> Since this issue breaks linux-next, please apply ASAP.

Applied (by re-merging kvm-ppc-next, got dropped somehow), thanks.

-- 
error compiling committee.c: too many arguments to function

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

* Re: [PATCH] KVM: PPC: Move of include to __KERNEL__ section
@ 2010-09-05  7:57     ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2010-09-05  7:57 UTC (permalink / raw)
  To: Alexander Graf; +Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA

  On 09/04/2010 12:09 PM, Alexander Graf wrote:
> 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>
>
> ---
>
> Since this issue breaks linux-next, please apply ASAP.

Applied (by re-merging kvm-ppc-next, got dropped somehow), thanks.

-- 
error compiling committee.c: too many arguments to function


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

end of thread, other threads:[~2010-09-05  7:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-04  9:09 [PATCH] KVM: PPC: Move of include to __KERNEL__ section Alexander Graf
2010-09-04  9:09 ` Alexander Graf
     [not found] ` <1283591368-2984-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-09-05  7:57   ` Avi Kivity
2010-09-05  7:57     ` Avi Kivity
  -- strict thread matches above, loose matches on Subject: below --
2010-09-04  9:06 Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.