summaryrefslogtreecommitdiff
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-02-02 14:46:13 -0800
committerIngo Molnar <mingo@elte.hu>2010-02-08 08:53:19 +0100
commit50200df462023b187d80a99a52f5f2cfe3c86c26 (patch)
tree6337bc5150b89461b2dd80332ce0cf8069df2819 /kernel/sched.c
parent29275254caedfedce960cfe6df24b90cb04fe431 (diff)
kernel/sched.c: Suppress unused var warning
On UP: kernel/sched.c: In function 'wake_up_new_task': kernel/sched.c:2631: warning: unused variable 'cpu' Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 3a8fb30a91b1..e3199df426e3 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2647,7 +2647,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
{
unsigned long flags;
struct rq *rq;
- int cpu = get_cpu();
+ int cpu __maybe_unused = get_cpu();
#ifdef CONFIG_SMP
/*