lkml.org 
[lkml]   [2010]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] kernel/cpu.c - fix build warning
Date
Patch "sched: Simplify cpu-hot-unplug task migration" in
linux-next as of 20101119 introduced the following compile
warning. Fix this.

CC kernel/cpu.o
kernel/cpu.c: In function 'take_cpu_down':
kernel/cpu.c:200: warning: unused variable 'cpu'

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Ingo Molnar <mingo@elte.hu>
---
Okay with me to fold this into the original patch if that's
still possible.

kernel/cpu.c | 1 -
1 file changed, 1 deletion(-)

Index: linux-2.6/kernel/cpu.c
===================================================================
--- linux-2.6.orig/kernel/cpu.c
+++ linux-2.6/kernel/cpu.c
@@ -197,7 +197,6 @@ struct take_cpu_down_param {
static int __ref take_cpu_down(void *_param)
{
struct take_cpu_down_param *param = _param;
- unsigned int cpu = (unsigned long)param->hcpu;
int err;

/* Ensure this CPU doesn't handle any more interrupts. */

\
 
 \ /
  Last update: 2010-11-19 06:29    [W:0.026 / U:1.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site