[kvm-unit-tests][PATCH] x86: hypercall: fix compile error on i386

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
---
 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
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux