From: Keith Owens Before commit 47e65328a7b1cdfc4e3102e50d60faf94ebba7d3, next_thread() took a const task_t. Reinstate the const qualifier, getting the next thread never changes the current thread. Signed-off-by: Keith Owens Signed-off-by: Andrew Morton --- include/linux/sched.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/sched.h~reinstate-const-in-next_thread include/linux/sched.h --- 25/include/linux/sched.h~reinstate-const-in-next_thread Mon Apr 3 16:13:48 2006 +++ 25-akpm/include/linux/sched.h Mon Apr 3 16:13:48 2006 @@ -1206,7 +1206,7 @@ extern void wait_task_inactive(task_t * #define thread_group_leader(p) (p->pid == p->tgid) -static inline task_t *next_thread(task_t *p) +static inline task_t *next_thread(const task_t *p) { return list_entry(rcu_dereference(p->thread_group.next), task_t, thread_group); _