Re: [PATCH] s390: hypfs: use ktime_get_seconds() instead of get_seconds()

From: Martin Schwidefsky
Date: Mon Jun 18 2018 - 07:26:59 EST


On Mon, 18 Jun 2018 12:05:00 +0200
Arnd Bergmann <arnd@xxxxxxxx> wrote:

> time_t and get_seconds() are deprecated because they will overflow on
> 32-bit architectures in the future. This is not a problem on 64-bit s390,
> but we should use proper interfaces anyway.
>
> Besides moving to the time64_t based interface, the CLOCK_MONOTONIC
> based ktime_get_seconds() is preferred for kernel internal timekeeping
> because it does not behave in unexpected ways during leap second changes
> or settimeofday() calls.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Added to my set of patches for the next merge window.

--
blue skies,
Martin.

"Reality continues to ruin my life." - Calvin.