OSDN Git Service

rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 22 Mar 2019 07:26:12 +0000 (08:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:37 +0000 (14:50 +0100)
commitaf06cc1c974858ecf22a77e4447a4ee05a07b50a
tree9490499961fcdd5ea800cb2b6d42e82d5f89cd06
parent40ad6e3ae43d290de3ff2555c7dc696d203ad626
rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900

[ Upstream commit d3062d1d7415cb5a37777220357aca51a491c3d7 ]

Printing "mktime64(1900, 1, 1, 0, 0, 0)" gives -2208988800.

Fixes: 83bbc5ac63326433 ("rtc: Add useful timestamp definitions")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/rtc.h