From patchwork Tue Jun 20 09:35:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 105976 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1278126qgd; Tue, 20 Jun 2017 02:48:21 -0700 (PDT) X-Received: by 10.99.132.198 with SMTP id k189mr22811252pgd.233.1497952100843; Tue, 20 Jun 2017 02:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497952100; cv=none; d=google.com; s=arc-20160816; b=gz+c9Q2c2RPe2QQxsRbq0GssI8OWidetkPK6z6Uo8Csc21v4LHnYQON+efru15shFs RBMsBc9MQYAbgZJ5jzZr9wbKVI9cRkm+T2RbYRZIsoQzFqu49XHmjLaafQIRuUDsrIbQ 5O7riOFc++pOAnl7Obvd65S5o1fDlwhCWTFnb8wXCkAe6Ej0BPafh5V2fag0nwRu/+Mj 5QbLfsAeIQVH6d7BJDfqY8za4IiQIja+OBNrHGyyvYmCwX48QoT/n5TBG8U0qcA5XPOV S1cAuCWZTxtOkUGPWB4KStra2Jvj7f1aXY30NK5e97qYOTfRUzJvBa1wkjKCfeNWcnqr RZPQ== 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=IWUzzH7lGhWLaolb0AnsGNeRwUZZ6DM10Q5haRCbzS8=; b=lIlZlTzeQlIRrqU0IeUkiYQwz2DuYUGIb4yUveXUFmaP+SJqOsJc25jGdEsZ/wBOnR r+bhuykMIiUy+h964cLSjfIrt6HG2jGuviD/qGu3qv22xdKFygjgWkZM/QMTHSroRUU/ uHRk5ktw30jkPclHxgmkmGPXioFPCeK4xClcZAD1DtDwlpyg4OVv3fzDVviNqZ1ZyGil oi10wqwWfEOmujLrLq2vXpB6oiYUFnGbjW3K1hpvW5TajFEETTZdtn03g0KPloTDIlkJ 6rIaMeIQueZKhnYPDeMEtH3TKwEYygiR+mGVHEGpmmu8j4zgFXYjKoT+c1v+pWVvqi/g tUhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=MD1/UE+d; 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 q3si3210677pgf.182.2017.06.20.02.48.20; Tue, 20 Jun 2017 02:48:20 -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=MD1/UE+d; 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 S1753059AbdFTJsQ (ORCPT + 25 others); Tue, 20 Jun 2017 05:48:16 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:34227 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbdFTJiI (ORCPT ); Tue, 20 Jun 2017 05:38:08 -0400 Received: by mail-wr0-f177.google.com with SMTP id 77so88378432wrb.1 for ; Tue, 20 Jun 2017 02:38:08 -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=IWUzzH7lGhWLaolb0AnsGNeRwUZZ6DM10Q5haRCbzS8=; b=MD1/UE+dHITm4R7UorbtiGJ5D52EELu2B8oVIK2lUGhDS6tWETw61qmqQTQaHQkAQt AbZILq4Zvg4Ci2Vprl78dTvCcdcKTDJAcJ11VKqOM+XCa3Rk65nEEJdi3gv3xABX5FB5 LTjI9mETDkAv7jNZxRz5J0OEvq12soqxS8LOY= 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=IWUzzH7lGhWLaolb0AnsGNeRwUZZ6DM10Q5haRCbzS8=; b=UGMNjr+kc8Khc94IiDCXUgs4Fa2XFXUMattN3yPLUbjwnR5gnJjA4Une9w0b884nTR obnLIGwc5mfEMl1unipW2vRtbGJ5aIfFCao2RosjCS69f4BRgAcB4AVds+sk0d4l02V0 Pb/4wKFnBYHbyAMo9AMrGZIAwSC6GyMtp7+euIgI8yhzcM7vkrfiB58svZ9SJWyaAAw0 fhYcX5FURxU/qpyPumwo89aO+ZXqY/yvdLQieolNKqmi4Y2Jk/l9PBzN7X9iYCMvymAG +IY9XfqERQur3NGyKlKv3EL4HEyTfFEHoxlQQdFdEEPbuSYpaHk+Y5VUZeY39bhugo4y D2cg== X-Gm-Message-State: AKS2vOyEfZ5iNLiqSxD0jOYbMjClBJSEd0DcbUSS9bM5Rimp2BkGYx/z bV3aXmfYiESHEpGn X-Received: by 10.223.176.164 with SMTP id i33mr18067048wra.165.1497951487573; Tue, 20 Jun 2017 02:38:07 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:38:07 -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 30/51] rtc: mv: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:38 +0200 Message-Id: <1497951359-13334-31-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-mv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c index 79bb286..fce4658 100644 --- a/drivers/rtc/rtc-mv.c +++ b/drivers/rtc/rtc-mv.c @@ -127,7 +127,7 @@ static int mv_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) if (rtc_valid_tm(&alm->time) < 0) { dev_err(dev, "retrieved alarm date/time is not valid.\n"); - rtc_time_to_tm(0, &alm->time); + rtc_time64_to_tm(0, &alm->time); } alm->enabled = !!readl(ioaddr + RTC_ALARM_INTERRUPT_MASK_REG_OFFS);