From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8058DC33CAF for ; Thu, 16 Jan 2020 19:03:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 521782053B for ; Thu, 16 Jan 2020 19:03:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579201380; bh=JJoNUAn5XTcRHAbd/GoL60h9POSWMI/lFT0ZqauAsxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=nqdEeFTy99pHTkZEa4ON3UYava9VzCjq9/l0gcfT8NtfVyWw6+CXdaVqsG/2LuJc/ Ni4MDcDGhJpmZvkOTp2jon2Qpz5yLGcOoE4RvVeoQOHsewT2FR6hj/lfPGYUvkaA7i PktGVhIwVd9h6/e1aQ2SWK1CeLyEMssLZMLgNke0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437292AbgAPTC7 (ORCPT ); Thu, 16 Jan 2020 14:02:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:34268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387809AbgAPRFa (ORCPT ); Thu, 16 Jan 2020 12:05:30 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE131207FF; Thu, 16 Jan 2020 17:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579194329; bh=JJoNUAn5XTcRHAbd/GoL60h9POSWMI/lFT0ZqauAsxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HOtrOjyYhMCsayaCVl0LO8Ma6XUWggxBsR/isGZgtQ6KTcDHieZjJLWYZFryvRXR4 KhBVTx6KQqM4bxz1jYo6zDD45586Ekhdg4en2tRiOa5LLIkSsqcJJAw5Folt8moZNq gjQllMedGH07lYdhHXarcPaZz9dsa+CKtNDEXeVY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Geert Uytterhoeven , Alexandre Belloni , Sasha Levin , linux-rtc@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 277/671] rtc: Fix timestamp value for RTC_TIMESTAMP_BEGIN_1900 Date: Thu, 16 Jan 2020 11:58:35 -0500 Message-Id: <20200116170509.12787-14-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200116170509.12787-1-sashal@kernel.org> References: <20200116170509.12787-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org From: Geert Uytterhoeven [ 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 Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- include/linux/rtc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 6aedc30003e7..5a34f59941fb 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -163,7 +163,7 @@ struct rtc_device { #define to_rtc_device(d) container_of(d, struct rtc_device, dev) /* useful timestamps */ -#define RTC_TIMESTAMP_BEGIN_1900 -2208989361LL /* 1900-01-01 00:00:00 */ +#define RTC_TIMESTAMP_BEGIN_1900 -2208988800LL /* 1900-01-01 00:00:00 */ #define RTC_TIMESTAMP_BEGIN_2000 946684800LL /* 2000-01-01 00:00:00 */ #define RTC_TIMESTAMP_END_2099 4102444799LL /* 2099-12-31 23:59:59 */ -- 2.20.1