Re: [PATCH 1/5] timekeeping: Remove timespec64 hack

From: Arnd Bergmann
Date: Fri Apr 27 2018 - 16:17:00 EST


On Fri, Apr 27, 2018 at 3:40 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote:

> The main upside of removing the hack is that printing the tv_sec
> field of a timespec64 structure can now use the %lld format
> string on all architectures without a cast to time64_t. Without
> this patch, the field is a 'long' type and would have to be printed
> using %ld on 64-bit architectures.

As mentioned in another thread, this patch is now also a
prerequisite for the cleaned up patch "[v3] x86: Convert
x86_platform_ops to timespec64", which used to rely
on an ugly hack to avoid a forward-declaration of
'struct timespec64', which is now allowed on 64-bit
architectures after timespec64 is a structure rather than
a macro now.

Arnd