[kvm-unit-tests PATCH] x86/syscall: Add suffix to "sysret" to silence an assembler warning

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

 



The assembler in Fedora 37 complains:

 x86/syscall.c: Assembler messages:
 x86/syscall.c:93: Warning: no instruction mnemonic suffix given and no
  register operands; using default for `sysret'

Add the "l" suffix here to make it silent.

Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
---
 x86/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x86/syscall.c b/x86/syscall.c
index b0df0720..402d3973 100644
--- a/x86/syscall.c
+++ b/x86/syscall.c
@@ -90,7 +90,7 @@ static void test_syscall_tf(void)
     asm volatile("  push %%rbp\n"
                  "  mov %%rsp, (%%rax)\n"  // stack pointer for exception handler
                  "  pushf; pop %%rax\n"   // expected by syscall32_target
-                 "  sysret\n"
+                 "  sysretl\n"
                  "back_to_test:\n"
                  "  pop %%rbp"
                  : [sysret_target] "+c"(rcx), [sp0] "+a" (rax) :
-- 
2.31.1




[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