Re: [PATCH 2/2] ntp:Change the type of time_reftime to time64_t and replace get_seconds with __ktime_get_real_seconds

From: John Stultz
Date: Wed Dec 16 2015 - 01:11:56 EST


On Sat, Dec 12, 2015 at 8:24 PM, DengChao <chao.deng@xxxxxxxxxx> wrote:
> The type of static variant "time_reftime" and the call of get_seconds
> in ntp are both not y2038 safe.
> So change the type of time_reftime to time64_t and replace get_seconds
> with __ktime_get_real_seconds.
> The local variant "secs" in ntp_update_offset represents seconds between
> now and last ntp adjustment, it seems impossible that this time will last
> more than 68 years, so keep its type as "long".
>
> Reviewed-by: John Stultz <john.stultz@xxxxxxxxxx>
> Signed-off-by: DengChao <chao.deng@xxxxxxxxxx>

Reworked the commit log a bit, but queued this for testing.

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