Messages in this thread | | | From | Arnd Bergmann <> | Date | Fri, 27 Apr 2018 22:16:53 +0200 | Subject | Re: [PATCH 1/5] timekeeping: Remove timespec64 hack |
| |
On Fri, Apr 27, 2018 at 3:40 PM, Arnd Bergmann <arnd@arndb.de> 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
| |