diff --git a/[refs] b/[refs] index 0d4fe4b88145..a4c9c128ffd2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 49b6e2ad00435209503863932d03470f825e0a1a +refs/heads/master: a9cdf410ca8f59b52bc7061a6751050010c7cc5b diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index a3e4f6b503a3..83d657811d01 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/include/linux/sched.h @@ -1206,7 +1206,7 @@ extern void wait_task_inactive(task_t * p); /* de_thread depends on thread_group_leader not being a pid based check */ #define thread_group_leader(p) (p == p->group_leader) -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);