Skip to content

Commit 5af14c2

Browse files
committed
x86/tdx: Annotate a noreturn function
objdump complains: vmlinux.o: warning: objtool: __tdx_hypercall()+0x74: unreachable instruction because __tdx_hypercall_failed() won't return but panic the guest. Annotate that that is ok and desired. Fixes: eb94f1b ("x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions") Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5196401 commit 5af14c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/coco/tdx/tdcall.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,5 +200,6 @@ SYM_FUNC_START(__tdx_hypercall)
200200
.Lpanic:
201201
call __tdx_hypercall_failed
202202
/* __tdx_hypercall_failed never returns */
203+
REACHABLE
203204
jmp .Lpanic
204205
SYM_FUNC_END(__tdx_hypercall)

0 commit comments

Comments
 (0)