From patchwork Tue Jun 20 09:35:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 105963 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1276140qgd; Tue, 20 Jun 2017 02:42:04 -0700 (PDT) X-Received: by 10.84.241.197 with SMTP id t5mr34261163plm.48.1497951724615; Tue, 20 Jun 2017 02:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497951724; cv=none; d=google.com; s=arc-20160816; b=MwY2nKQdlpA98SqDJ0xgmmcjkG0xGP3yOevvPaOlQOTxBUb4KJknJ8+3EOgtkVPpGy 31OAu6vqAEdu/pav+TSuKbIRRy9juIJK9mNOZ/yqq965LkpfsNPnchpOKBhovabbi72Z mZPQQuVI2oWkBrsxUaC6LNRFze/WnUKeuW+y2oBrwebJeCTN5T+BNvki4+VWeChH9RL5 0KuOFHUa/hQop5rM7VxJnipmUx7BpHbYyThzYO70MZrndpxRJeSR+sRa/oJ2bskzUuY3 tNUQQ/zW8s1iLMymU7iWp74F+WKWTwUPBb1pqlP2QKqitmirG6KmlMfkG3Swe6s1lHdv wIIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wzFhvPIyqtc2AfxnVd+cc9LS4EyfKga8xmCqCbt7jEA=; b=sjdGkxHiq6kVHCUYodIljZG3+DE9tP1JECa07bO6MODlmmHxfq4CuJ3auEzfM1buHH nw5ZDs8PL8t7Y3QROBlD7kxRvgYEluvJ+ucJ+oVmVhjsC3kuOkIh9n6CoYKgBMeIxfdx 5nwRB4cT07Z8+llY1nNPVnZFOh4rcz/uUIUF7HLdRbztYQJpPDEQhRlz5cSURnJOnVe3 UyoUHLqIJXZPhXx2RPOTGe8tLgo31f2MF3BgWJG5umQo4Vu4f46DYTpN8gNT/5QeMCCc L+RUsljFOLTpm4UbhDVXMhFa3xD/of+Nx82pdvN2zA8NF2HbiH9+By7Cm3jBAFg4ygD8 tzkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=enplYg8O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g87si8252684pfj.284.2017.06.20.02.42.03; Tue, 20 Jun 2017 02:42:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.b=enplYg8O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753157AbdFTJlz (ORCPT + 25 others); Tue, 20 Jun 2017 05:41:55 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:34305 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751989AbdFTJic (ORCPT ); Tue, 20 Jun 2017 05:38:32 -0400 Received: by mail-wr0-f181.google.com with SMTP id 77so88381743wrb.1 for ; Tue, 20 Jun 2017 02:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=wzFhvPIyqtc2AfxnVd+cc9LS4EyfKga8xmCqCbt7jEA=; b=enplYg8OVqPq/r4BZcYIJXz1vbiekDfhFm17tBRbWsjz76O99yLZZz9FPD8Vb5WBNR 5u05Jpw1pLOsYGMSJ6+kk3MF8ykk8M/D7CYet+eS8gHwJANWPbxC+GQBmXArERTdbZzQ I55B73GPDDwp3JfM3/Hn1xIjFZOn5yE46M0zM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=wzFhvPIyqtc2AfxnVd+cc9LS4EyfKga8xmCqCbt7jEA=; b=W8NTPG44qnmpttfdGxUZFxamBVnJcegq3luKXOjVvAQRjZ6zawCNBetuOI6CHcALC7 cOMUcMOR5trR3PtmlPjXomTvXrhJ1F4LSfRb+gYRzaXr0BHROwBUTq7zJPfYUthaTVFy 2n4YqBRmuR1dp7n+aNA/ly5zVY7Qvmc81sBdzZrUrxJfqMTYhCRmp/zDSF5yI1i3lv8W jBA3LzJ6mk77ouPaaeeLkC/EuEhkaXg1oD4xn9yg82l6fDiB2eWTVZqXJyH4PiNNQIzY cVusvhrN4RykWs/NXOCM+bV607sUpIoxvvNiW1Rz8IamoShhmbMa8GQrtMPvN/bfaQr2 2wiA== X-Gm-Message-State: AKS2vOxXPw83tgMJg5IyRXN9RzzFPZC48lKJv4NdBdWxZ1QIM/uAR4yP ITtRh8ZpQ8XlTk1g X-Received: by 10.223.164.220 with SMTP id h28mr21379201wrb.24.1497951500991; Tue, 20 Jun 2017 02:38:20 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.93.217]) by smtp.gmail.com with ESMTPSA id e24sm4482318wrc.35.2017.06.20.02.38.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:38:20 -0700 (PDT) From: Benjamin Gaignard To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Alessandro Zummo , Alexandre Belloni , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 38/51] rtc: sh: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:46 +0200 Message-Id: <1497951359-13334-39-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497951359-13334-1-git-send-email-benjamin.gaignard@linaro.org> References: <1497951359-13334-1-git-send-email-benjamin.gaignard@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com CC: linux-kernel@vger.kernel.org --- drivers/rtc/rtc-sh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index 6c2d398..f65da1e 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c @@ -694,7 +694,7 @@ static int __init sh_rtc_probe(struct platform_device *pdev) /* reset rtc to epoch 0 if time is invalid */ if (rtc_read_time(rtc->rtc_dev, &r) < 0) { - rtc_time_to_tm(0, &r); + rtc_time64_to_tm(0, &r); rtc_set_time(rtc->rtc_dev, &r); }