Skip to content

Commit c796f02

Browse files
Peter Zijlstrasuryasaimadhu
authored andcommitted
x86/tdx: Fix RETs in TDX asm
Because build-testing is over-rated, fix a few trivial objtool complaints: vmlinux.o: warning: objtool: __tdx_module_call+0x3e: missing int3 after ret vmlinux.o: warning: objtool: __tdx_hypercall+0x6e: missing int3 after ret Fixes: eb94f1b ("x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions") Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5af14c2 commit c796f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/coco/tdx/tdcall.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ SYM_FUNC_START(__tdx_module_call)
7373
FRAME_BEGIN
7474
TDX_MODULE_CALL host=0
7575
FRAME_END
76-
ret
76+
RET
7777
SYM_FUNC_END(__tdx_module_call)
7878

7979
/*
@@ -196,7 +196,7 @@ SYM_FUNC_START(__tdx_hypercall)
196196

197197
FRAME_END
198198

199-
retq
199+
RET
200200
.Lpanic:
201201
call __tdx_hypercall_failed
202202
/* __tdx_hypercall_failed never returns */

0 commit comments

Comments
 (0)