From: Tiwei Bie Date: Wed, 6 Mar 2024 10:19:20 +0000 (+0800) Subject: um: Fix the return type of __switch_to X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=179d83d89c584aa50f87ca3e44b1f1aff914303c;p=linux.git um: Fix the return type of __switch_to Make it match the declaration in asm-generic/switch_to.h. And also include the header to allow the compiler to check it. Signed-off-by: Tiwei Bie Signed-off-by: Richard Weinberger --- diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index 292c8014aaa65..a7607ef1b02f3 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -73,7 +74,7 @@ static inline void set_current(struct task_struct *task) extern void arch_switch_to(struct task_struct *to); -void *__switch_to(struct task_struct *from, struct task_struct *to) +struct task_struct *__switch_to(struct task_struct *from, struct task_struct *to) { to->thread.prev_sched = from; set_current(to);