aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2011-12-20 11:20:46 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-01-16 12:44:00 -0500
commit7061ca3b6c99fc78115560b9a10227c8c5fafc45 (patch)
treebdc970631a678cefa0902b42575c3e28b2594527 /include/linux/sched.h
parentd8e8ed95cda1dfd6813588333d36552935eba4a1 (diff)
sched: Add "const" to is_idle_task() parameter
This patch fixes a build warning in -next due to a const pointer being passed to is_idle_task(). Because is_idle_task() does not modify anything, this commit adds the "const" to is_idle_task()'s argument declaration. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 4a7e4d333a27..56fa25a5b1eb 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2074,7 +2074,7 @@ extern struct task_struct *idle_task(int cpu);
2074 * is_idle_task - is the specified task an idle task? 2074 * is_idle_task - is the specified task an idle task?
2075 * @tsk: the task in question. 2075 * @tsk: the task in question.
2076 */ 2076 */
2077static inline bool is_idle_task(struct task_struct *p) 2077static inline bool is_idle_task(const struct task_struct *p)
2078{ 2078{
2079 return p->pid == 0; 2079 return p->pid == 0;
2080} 2080}