diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a3e4f6b503a3..83d657811d01 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1206,7 +1206,7 @@ extern void wait_task_inactive(task_t * p); | |||
1206 | /* de_thread depends on thread_group_leader not being a pid based check */ | 1206 | /* de_thread depends on thread_group_leader not being a pid based check */ |
1207 | #define thread_group_leader(p) (p == p->group_leader) | 1207 | #define thread_group_leader(p) (p == p->group_leader) |
1208 | 1208 | ||
1209 | static inline task_t *next_thread(task_t *p) | 1209 | static inline task_t *next_thread(const task_t *p) |
1210 | { | 1210 | { |
1211 | return list_entry(rcu_dereference(p->thread_group.next), | 1211 | return list_entry(rcu_dereference(p->thread_group.next), |
1212 | task_t, thread_group); | 1212 | task_t, thread_group); |