]> Gentwo Git Trees - linux/.git/commit
s390/nmi: Annotate s390_handle_damage() with __noreturn
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 27 Oct 2025 08:47:25 +0000 (09:47 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 6 Nov 2025 13:17:28 +0000 (14:17 +0100)
commitf07ebfa5e48c59c41aea247982184fe956cbb756
treee599b3201128e5f4e0bc68533d5b817edda2e889
parent858063c1aec837a7a500db9bd13145a17b0b7641
s390/nmi: Annotate s390_handle_damage() with __noreturn

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@linux.dev>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/nmi.c