Message ID | 20230329105710.57968-1-thuth@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [kvm-unit-tests] x86/syscall: Add suffix to "sysret" to silence an assembler warning | expand |
On Wed, 29 Mar 2023 12:57:10 +0200, Thomas Huth wrote: > 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. > > [...] Applied to kvm-x86 next, thanks! [1/1] x86/syscall: Add suffix to "sysret" to silence an assembler warning https://github.com/kvm-x86/kvm-unit-tests/commit/3c128d26cd4b -- https://github.com/kvm-x86/kvm-unit-tests/tree/next
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) :
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@redhat.com> --- x86/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)