summaryrefslogtreecommitdiffstats
path: root/arch/x86/coco
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2022-04-20 13:45:49 +0200
committerBorislav Petkov <bp@suse.de>2022-04-21 12:54:08 +0200
commit5af14c29f7a0e6d1fcee44c4ed4a2d12a49c4a43 (patch)
treee10f46aa3765c51c5bbfbeac7d08abfd3f5f4799 /arch/x86/coco
parent51964015565d302fda63ce84ef151e1c9a5939cc (diff)
downloadlinux-5af14c29f7a0e6d1fcee44c4ed4a2d12a49c4a43.tar.bz2
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: eb94f1b6a70a ("x86/tdx: Add __tdx_module_call() and __tdx_hypercall() helper functions") Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20220420115025.5448-1-bp@alien8.de
Diffstat (limited to 'arch/x86/coco')
-rw-r--r--arch/x86/coco/tdx/tdcall.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/coco/tdx/tdcall.S b/arch/x86/coco/tdx/tdcall.S
index 245888290bb6..eeb4511dc414 100644
--- a/arch/x86/coco/tdx/tdcall.S
+++ b/arch/x86/coco/tdx/tdcall.S
@@ -200,5 +200,6 @@ SYM_FUNC_START(__tdx_hypercall)
.Lpanic:
call __tdx_hypercall_failed
/* __tdx_hypercall_failed never returns */
+ REACHABLE
jmp .Lpanic
SYM_FUNC_END(__tdx_hypercall)