Re: [PATCH] x86/tdx: Annotate a noreturn function
From: Kirill A. Shutemov
Date: Thu Apr 21 2022 - 22:13:48 EST
On Wed, Apr 20, 2022 at 01:50:25PM +0200, Borislav Petkov wrote:
> From: Borislav Petkov <bp@xxxxxxx>
>
> 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@xxxxxxx>
Have not seen REACHABLE before.
Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
--
Kirill A. Shutemov