[PATCH] sched: Fix unused variable warning on UP (was: Re: linux-next: tip tree build warning)

From: Geert Uytterhoeven
Date: Sun Feb 07 2010 - 14:57:27 EST


On Mon, Feb 1, 2010 at 08:12, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> Today's linux-next build (powerpc allnoconfig) produced this warning:
>
> kernel/sched.c: In function 'wake_up_new_task':
> kernel/sched.c:2631: warning: unused variable 'cpu'
>
> Introduced by commit fabf318e5e4bda0aca2b0d617b191884fda62703 ("sched:
> Fix fork vs hotplug vs cpuset namespaces").

And now we have it in 2.6.33-rc7, too...
Patch below (FWIW, compile-tested on m68k with CONFIG_SMP=n only).

---