summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-03-11 14:08:43 -0800
committerIngo Molnar <mingo@elte.hu>2010-03-16 11:13:42 +0100
commitc890692bf37671b5b78a1870d55d6d87e1c8a509 (patch)
tree70ffb80cf62eabaeabf334d08ae88aa63eccb5be /kernel
parentcd3d8031eb4311e516329aee03c79a08333141f1 (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> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 6eaef3df2d1..82975b5b42f 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -2650,7 +2650,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
/*