projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd3d803
)
kernel/sched.c: Suppress unused var warning
author
Andrew Morton
<akpm@linux-foundation.org>
Thu, 11 Mar 2010 22:08:43 +0000
(14:08 -0800)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 16 Mar 2010 10:13:42 +0000
(11:13 +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>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/sched.c
b/kernel/sched.c
index 6eaef3df2d197dfc9eee78a8abcf0e87dd6cca1c..82975b5b42f71441eb148e3eeaac4c29a5316e4c 100644
(file)
--- 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
/*