Skip to content

Commit 179d83d

Browse files
btw616richardweinberger
authored andcommitted
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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
1 parent b5e0950 commit 179d83d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/um/kernel/process.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <linux/resume_user_mode.h>
2727
#include <asm/current.h>
2828
#include <asm/mmu_context.h>
29+
#include <asm/switch_to.h>
2930
#include <linux/uaccess.h>
3031
#include <as-layout.h>
3132
#include <kern_util.h>
@@ -73,7 +74,7 @@ static inline void set_current(struct task_struct *task)
7374

7475
extern void arch_switch_to(struct task_struct *to);
7576

76-
void *__switch_to(struct task_struct *from, struct task_struct *to)
77+
struct task_struct *__switch_to(struct task_struct *from, struct task_struct *to)
7778
{
7879
to->thread.prev_sched = from;
7980
set_current(to);

0 commit comments

Comments
 (0)