Message ID | 1499846682-14093-13-git-send-email-benjamin.gaignard@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp601451obm; Wed, 12 Jul 2017 01:06:01 -0700 (PDT) X-Received: by 10.98.211.89 with SMTP id q86mr54017947pfg.37.1499846761389; Wed, 12 Jul 2017 01:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499846761; cv=none; d=google.com; s=arc-20160816; b=DWLu88M/scS0CZ3EdzZvtvsRTRZM+BttwPVmtlIU7gzfk2DTcGiWiDvUWFEvJyjrhj ziF7/Nlow8J1cLCzfodYbxXnP11qGAWY3x/PKuF8NkicJDtVb7Zbw7fD1BXCHDvyAU54 Lq3GxluoNwvwBDZBq77NWlbTadnHSN6xIkAU2FZXkaUgRmv3JD5wYRP/BzekKqKT5CBm obTvAFrLiiGz1jkWbyaKn6q8iwS8j7IAskX9riUEGVZORxTq/tM9EH2J0NkL+WAbQrvE 1BysGFC0HcFConysF+GELszmtmUEWhq+/FRornbkpVnh5lpnLwGqjVUoFRnCDqEKP6U8 +3Ig== 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=PPNqivzGI4+XT/V6HXKkK3bdhx0rjv6+NYRMFQAFFF477vG0ZMDrvsoL1MlhtkCGwK qU/Ugkxd5Zr7qI6NBVTWvc0Haz0TNYn0F1iDY3YKlILB3MTKqubhH7RG+hqr2Im+x12N ITwmksQSidPQ/IEpA+7KGNWyrc8MngP2iT/1v162npRMvl39EK0SqGMNjfN6BSXXjbMU Bqamm8RsuTQ8vzVI4a7UHCHeWCtJ5MMUmJXISW8L7gZg5kz02o7HPkb5Oqes1Uui0tuC m2owlSSgIcbeU5ULySsxigWEBzKs3zLDf1VNpKNiDocl4OMuc3s7Bkifp65068bH8khq sd1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=T9N4pg7p; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e21si1435857pga.184.2017.07.12.01.06.01; Wed, 12 Jul 2017 01:06:01 -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=T9N4pg7p; 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 S1757073AbdGLIFl (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Wed, 12 Jul 2017 04:05:41 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:33005 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756970AbdGLIFf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Jul 2017 04:05:35 -0400 Received: by mail-wr0-f170.google.com with SMTP id r103so22510029wrb.0 for <linux-kernel@vger.kernel.org>; Wed, 12 Jul 2017 01:05:34 -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=T9N4pg7pSjRuu0IZD3huxSXWCU/kzHkcFfS0y9cbOwNSHC+hQZFb/1/O9/LFjFgaET tIJeI5A1kmIX5SJumhm0X7MIN+ftfKPBF+y5o8Vr1dPya13zKjdqcUgZJ4KUW26NFk2J 5OXCxBTn1fYTKyvcZMiZhpmhvDMB8aFNzOJxU= 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=o/0iGnpnSAzZn+YJ+FAxgtBhKBG2NwgNDHkz8iZkvKNC1duj6iKHXyr0OzcvUBs4vI 7IQkS1Nnl5SJ0UBlRhgvygnpn4Qfsm8uGLMyi3D4PSBj9pGlWHuJsMZhQTaHl5GaSQo1 fip1IFNCAYQmodI4jdmyzVALHWAzBdFtXvxuILOI09tDJJHJ0QzQ/uTzRfBUhux6cFqw L5TK5mp5tmMdj+k9k9dH8KRe/OQHfMfFq3bxH+2pqL1zUOWY7qL3NbfQoVFBeVVBnhAs sh+SOuDJJAN4EhWDmS5TWDNMiLfrcnmaLM0z24Mt0LwDCaLEVttBeUpmoLxebFaKwI4C zq8Q== X-Gm-Message-State: AIVw113d8WQWkl7uq3Dn5rO0hqe21BgGLabuijxfJj26KAxY4C7i53e5 /SdWDPUnBKHnJkXP X-Received: by 10.28.153.81 with SMTP id b78mr1527383wme.85.1499846728921; Wed, 12 Jul 2017 01:05:28 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.158.26]) by smtp.gmail.com with ESMTPSA id p34sm1430744wrc.66.2017.07.12.01.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:27 -0700 (PDT) From: Benjamin Gaignard <benjamin.gaignard@linaro.org> To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@free-electrons.com>, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 12/22] rtc: mv: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:32 +0200 Message-Id: <1499846682-14093-13-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499846682-14093-1-git-send-email-benjamin.gaignard@linaro.org> References: <1499846682-14093-1-git-send-email-benjamin.gaignard@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[v2,01/22] x86: rtc: stop using rtc deprecated functions
|
expand
|
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);
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 <benjamin.gaignard@linaro.org> CC: Alessandro Zummo <a.zummo@towertech.it> CC: Alexandre Belloni <alexandre.belloni@free-electrons.com> 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