* [PATCH] kernel/cpu.c - fix build warning
@ 2010-11-19 5:26 Anand Gadiyar
2010-11-19 6:24 ` Rakib Mullick
0 siblings, 1 reply; 2+ messages in thread
From: Anand Gadiyar @ 2010-11-19 5:26 UTC (permalink / raw)
To: linux-kernel, linux-next; +Cc: Anand Gadiyar, Peter Zijlstra, Ingo Molnar
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. */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel/cpu.c - fix build warning
2010-11-19 5:26 [PATCH] kernel/cpu.c - fix build warning Anand Gadiyar
@ 2010-11-19 6:24 ` Rakib Mullick
0 siblings, 0 replies; 2+ messages in thread
From: Rakib Mullick @ 2010-11-19 6:24 UTC (permalink / raw)
To: Anand Gadiyar; +Cc: linux-kernel, linux-next, Peter Zijlstra, Ingo Molnar
On 11/19/10, Anand Gadiyar <gadiyar@ti•com> wrote:
> 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
> 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. */
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger•kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-19 6:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-19 5:26 [PATCH] kernel/cpu.c - fix build warning Anand Gadiyar
2010-11-19 6:24 ` Rakib Mullick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox