[PATCH 5/5] s390/kdump: Mark __do_machine_kdump as __noreturn

From: Thorsten Blum
Date: Mon Nov 10 2025 - 08:33:59 EST


__do_machine_kdump() ends by calling the non-returning function
disabled_wait() 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 d78e6e3d962f..ca51168500fe 100644
--- a/arch/s390/kernel/machine_kexec.c
+++ b/arch/s390/kernel/machine_kexec.c
@@ -45,7 +45,7 @@ extern const unsigned long long relocate_kernel_len;
* Reset the system, copy boot CPU registers to absolute zero,
* and jump to the kdump image
*/
-static void __do_machine_kdump(void *data)
+static void __noreturn __do_machine_kdump(void *data)
{
struct kimage *image = data;
purgatory_t purgatory;
--
2.51.1