Re: Latest Linus git: kernel/sched.c:1216: warning: âinit_hrtickâ defined but not used

From: Dhaval Giani
Date: Tue May 13 2008 - 11:34:49 EST


On Tue, May 13, 2008 at 03:23:28PM +0200, Ingo Molnar wrote:
>
> * Kevin Winchester <kjwinchester@xxxxxxxxx> wrote:
>
> > Hi Ingo,
> >
> > I got the above warning in my latest build. I assume it is because
> > init_hrtick() is only called from CONFIG_SMP sched_init_smp(), and I
> > have a HRT-enabled UP box.
> >
> > I could write up the simple patch to put #ifdef CONFIG_SMP around
> > init_hrtick(), but with all of the #ifdefs in that file, I figure it
> > is probably a little more complicated than that.
>
> the fix seems simple - see below. The #ifdef jungle ... less so.

I attempted to make it a bit easier to figure out that jungle at
http://lkml.org/lkml/2008/5/12/64 , if it helps.

--
regards,
Dhaval
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/