Message ID | 1422390185-27896-1-git-send-email-chris.j.arges@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 27/01/2015 21:23, Chris J Arges wrote: > There is a failure to build on 32-bit hosts: > x86/hypercall.c: In function ‘test_edge’: > x86/hypercall.c:42:2: error: ‘test_rip’ undeclared (first use in this function) > test_rip = 0; > ^ > > This patch fixes this issue. > > Signed-off-by: Chris J Arges <chris.j.arges@canonical.com> > --- > x86/hypercall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/x86/hypercall.c b/x86/hypercall.c > index 1548421..3ac5ff9 100644 > --- a/x86/hypercall.c > +++ b/x86/hypercall.c > @@ -24,8 +24,8 @@ static inline long kvm_hypercall0_amd(unsigned int nr) > } > > > -#ifdef __x86_64__ > volatile unsigned long test_rip; > +#ifdef __x86_64__ > extern void gp_tss(void); > asm ("gp_tss: \n\t" > "add $8, %rsp\n\t" // discard error code > Thanks, applied. Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/x86/hypercall.c b/x86/hypercall.c index 1548421..3ac5ff9 100644 --- a/x86/hypercall.c +++ b/x86/hypercall.c @@ -24,8 +24,8 @@ static inline long kvm_hypercall0_amd(unsigned int nr) } -#ifdef __x86_64__ volatile unsigned long test_rip; +#ifdef __x86_64__ extern void gp_tss(void); asm ("gp_tss: \n\t" "add $8, %rsp\n\t" // discard error code
There is a failure to build on 32-bit hosts: x86/hypercall.c: In function ‘test_edge’: x86/hypercall.c:42:2: error: ‘test_rip’ undeclared (first use in this function) test_rip = 0; ^ This patch fixes this issue. Signed-off-by: Chris J Arges <chris.j.arges@canonical.com> --- x86/hypercall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)