Skip to contentSkip to conversation

kernel/exit: fix mismatch in function argument types

PATCH New zhong jiang 1 participant 1 message Jul 22, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/exit: fix mismatch in function argument types

Fix following warning:

kernel/exit.c:1634:6: error: symbol 'kernel_wait4' redeclared with different type (originally declared at ./include/linux/sched/task.h:78)
- incompatible argument 2 (different address spaces)

---
 include/linux/sched/task.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/sched/task.h +1 -1
index 5be31eb..108ede9 100644
@@ -75,7 +75,7 @@ static inline void exit_thread(struct task_struct *tsk)
 extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *);
 struct task_struct *fork_idle(int);
 extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags);
-extern long kernel_wait4(pid_t, int *, int, struct rusage *);
+extern long kernel_wait4(pid_t, int __user *, int, struct rusage *);
 
 extern void free_task(struct task_struct *tsk);
 
Signature · 1 line
1.7.12.4