Re: [PATCH] s390/nmi: Annotate s390_handle_damage with __noreturn
From: Heiko Carstens
Date: Wed Oct 29 2025 - 09:13:10 EST
On Mon, Oct 27, 2025 at 09:47:25AM +0100, Thorsten Blum wrote:
> s390_handle_damage() ends by calling the non-returning function
> disabled_wait() and therefore also never returns. Annotate it with the
> __noreturn compiler attribute to improve compiler optimizations.
>
> Remove the unreachable infinite while loop.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> arch/s390/kernel/nmi.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.