[PATCH] firmware: raspberrypi: print time using time64_t
Eric Anholt
eric at anholt.net
Mon Nov 27 08:20:31 PST 2017
Arnd Bergmann <arnd at arndb.de> writes:
> The firmware timestamp is an unsigned 32-bit value, but we copy it into
> a signed 32-bit variable, so we can theoretically get an overflow in
> the calculation when the timestamp is between 2038 and 2106.
>
> This changes the temporary variable to time64_t and changes the deprecated
> time_to_tm() over to time64_to_tm() accordingly.
>
> There is still an overflow in y2106, but that is a limitation of the
> firmware interface, not a kernel problem.
Reviewed-by: Eric Anholt <eric at anholt.net>
I'll pull this in our branches.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20171127/79d93fbe/attachment.sig>
More information about the linux-rpi-kernel
mailing list