[PATCH 4/5] s390/kdump: Mark __machine_kexec as __noreturn
From: Thorsten Blum
Date: Mon Nov 10 2025 - 08:30:00 EST
__machine_kexec() either ends by calling the non-returning function
__machine_kdump() or the non-returning function __do_machine_kexec(),
and therefore also never returns. Annotate it with the __noreturn
attribute to improve compiler optimizations.
Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
---
arch/s390/kernel/machine_kexec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/kernel/machine_kexec.c b/arch/s390/kernel/machine_kexec.c
index 6de5e0fde49a..d78e6e3d962f 100644
--- a/arch/s390/kernel/machine_kexec.c
+++ b/arch/s390/kernel/machine_kexec.c
@@ -248,7 +248,7 @@ static void __noreturn __do_machine_kexec(void *data)
/*
* Reset system and call either kdump or normal kexec
*/
-static void __machine_kexec(void *data)
+static void __noreturn __machine_kexec(void *data)
{
pfault_fini();
tracing_off();
--
2.51.1