mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
s390/process: Fix kernel thread function pointer type
[ Upstream commitd0478f5d3c] 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:56e62a7370("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
eb73056ce2
commit
b43dee28b7
@@ -48,7 +48,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user