]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390/process: Fix kernel thread function pointer type
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 8 Jun 2026 14:19:08 +0000 (16:19 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 11 Jun 2026 15:45:35 +0000 (17:45 +0200)
In case of a kernel thread __ret_from_fork() calls the specified function
indirectly. Fix the kernel thread function pointer, since kernel threads
return an int instead of void.

Fixes: 56e62a737028 ("s390: convert to generic entry")
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/process.c

index dabd569dbba8d531491b3fb823240cc8d76d2a57..416650ae4871c6ce45f1c68761ab94d8446778e9 100644 (file)
@@ -50,7 +50,7 @@ void ret_from_fork(void) asm("ret_from_fork");
 
 void __ret_from_fork(struct task_struct *prev, struct pt_regs *regs)
 {
-       void (*func)(void *arg);
+       int (*func)(void *arg);
 
        schedule_tail(prev);