Skip to contentSkip to conversation

kernel/cpu.c - fix build warning

PATCH In review Anand Gadiyar 2 participants 2 messages Nov 19, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/cpu.c - fix build warning

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'

Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>

---
Okay with me to fold this into the original patch if that's still possible.

 kernel/cpu.c |    1 -
 1 file changed, 1 deletion(-)
kernel/cpu.c +0 -1
Index: 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. */
#1 lore raw
Quoted 8 lines · Anand Gadiyar

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'

It's been already fixed by http://lkml.org/lkml/2010/11/18/314.

thanks,
rakib

Quoted 28 lines
Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>

---
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
===================================================================

kernel/cpu.c +0 -2
@@ -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. */
--

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/