projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2927525
)
kernel/sched.c: Suppress unused var warning
author
Andrew Morton
<akpm@linux-foundation.org>
Tue, 2 Feb 2010 22:46:13 +0000
(14:46 -0800)
committer
Ingo Molnar
<mingo@elte.hu>
Mon, 8 Feb 2010 07:53:19 +0000
(08:53 +0100)
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>
kernel/sched.c
patch
|
blob
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 3a8fb30a91b1bba639e164d8f34209a0497ae9fd..e3199df426e33d9df4890ff8b5955ee5ad4d762f 100644
(file)
--- 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
/*