Re: [PATCH]

From: Daniel Walker
Date: Fri Mar 24 2006 - 18:19:46 EST


On Fri, 2006-03-24 at 15:19 -0800, john stultz wrote:
> On Fri, 2006-03-24 at 15:07 -0800, Daniel Walker wrote:
> > Signed-Off-By: Daniel Walker <dwalker@xxxxxxxxxx>
> >
> > Index: linux-2.6.16/kernel/time/timeofday.c
> > ===================================================================
> > --- linux-2.6.16.orig/kernel/time/timeofday.c
> > +++ linux-2.6.16/kernel/time/timeofday.c
> > @@ -644,7 +644,7 @@ static void timeofday_periodic_hook(unsi
> >
> > int something_changed = 0;
> > int clocksource_changed = 0;
> > - struct clocksource old_clock;
> > + struct clocksource old_clock = { .mult = 1, .shift = 0 };
> > static s64 second_check;
> >
> > write_seqlock_irqsave(&system_time_lock, flags);
>
> I assume this is a fix for the GCC "may be used uninitialized" warning?

Yeah, Sorry ,I accidentally pressed enter before I described it ..

Daniel

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