| From de1d9248eadd27539eba449b4d09428252e80c04 Mon Sep 17 00:00:00 2001 |
| From: Michael Neuling <mikey@neuling.org> |
| Date: Wed, 9 Nov 2011 20:39:49 +0000 |
| Subject: powerpc: Add hvcall.h include to book3s_hv.c |
| |
| From: Michael Neuling <mikey@neuling.org> |
| |
| commit de1d9248eadd27539eba449b4d09428252e80c04 upstream. |
| |
| If you build with KVM and UP it fails with the following due to a |
| missing include. |
| |
| /arch/powerpc/kvm/book3s_hv.c: In function 'do_h_register_vpa': |
| arch/powerpc/kvm/book3s_hv.c:156:10: error: 'H_PARAMETER' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:156:10: note: each undeclared identifier is reported only once for each function it appears in |
| arch/powerpc/kvm/book3s_hv.c:192:12: error: 'H_RESOURCE' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:222:9: error: 'H_SUCCESS' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c: In function 'kvmppc_pseries_do_hcall': |
| arch/powerpc/kvm/book3s_hv.c:228:30: error: 'H_SUCCESS' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:232:7: error: 'H_CEDE' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:234:7: error: 'H_PROD' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:238:10: error: 'H_PARAMETER' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:250:7: error: 'H_CONFER' undeclared (first use in this function) |
| arch/powerpc/kvm/book3s_hv.c:252:7: error: 'H_REGISTER_VPA' undeclared (first use in this function) |
| make[2]: *** [arch/powerpc/kvm/book3s_hv.o] Error 1 |
| |
| Signed-off-by: Michael Neuling <mikey@neuling.org> |
| Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| arch/powerpc/kvm/book3s_hv.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- a/arch/powerpc/kvm/book3s_hv.c |
| +++ b/arch/powerpc/kvm/book3s_hv.c |
| @@ -43,6 +43,7 @@ |
| #include <asm/processor.h> |
| #include <asm/cputhreads.h> |
| #include <asm/page.h> |
| +#include <asm/hvcall.h> |
| #include <linux/gfp.h> |
| #include <linux/sched.h> |
| #include <linux/vmalloc.h> |