From patchwork Wed Jul 12 08:04:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 107450 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp600941obm; Wed, 12 Jul 2017 01:05:25 -0700 (PDT) X-Received: by 10.98.62.70 with SMTP id l67mr54813437pfa.114.1499846725768; Wed, 12 Jul 2017 01:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499846725; cv=none; d=google.com; s=arc-20160816; b=VLSH5P0lgakBy1nCEh2acNdBRkEuc3RtGn5d4KHxdPEXeIrZKgswNhkQARkq34q98O lCWCiMRDpfbZZSYTH+FG6GEotC7FTt6RxlJqumT97/HZEjqrVgP0T/Scrb8mabwpDBuC hpk3fo9Jw1mQ0g/lEXMkbCp+B1ACbI0PqOvnl9WIODXNyjwnEB+LadQjxiNTkAGfCimZ 8lNpqt+/kUHZC6XfKNnC5hnz9V8mp1adt/cN6EJ/V79rkAEecPiq54Cubo/DBIkqUn4a nmFG6ZSu/lKn5AkIk7+rBDy+Qmry7rFJI6QQcKNhq7cgLuwrtqfuYGzlINTDP/UT/8EW dvXA== 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=lPsqTQKEpp8GZCa83QDdJK1PRkg9ZIKpF6paM4D3Nlk=; b=CbTyk/RnFMP72bIifAZdQaFK/SRMQdSEi0PLAqGcl0EYIxzq+JUb2UpnP0/FsdSimR YMpxSieiYHrPKyuD3ZRGpv1GNio07RQHKlYTfgihUvHEiqmPWyBNXyBaHdmS1kyOcN6A owOo7pGaARk10zavHNTMCiB7BmhD0avCgDuIbit/+wFNmadY22M0oshaawo6b35Qmfkh cP+iNwTq1T7pBSNePSR9OhBI1ZHBj9GomMD+cm6hHR0LCaRYVGyy5hzScO35b27STEa2 RE7MblOxNXcCc4MjwpDaE0CIgbWMeC8POxriM24/WO60rvtuWyLKjCTbzFRbU9GUTS06 ZRnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=cW+ihAEP; 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 l29si1456364pli.30.2017.07.12.01.05.25; Wed, 12 Jul 2017 01:05:25 -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=cW+ihAEP; 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 S1757013AbdGLIFU (ORCPT + 25 others); Wed, 12 Jul 2017 04:05:20 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:35646 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756892AbdGLIFM (ORCPT ); Wed, 12 Jul 2017 04:05:12 -0400 Received: by mail-wr0-f170.google.com with SMTP id k67so22359215wrc.2 for ; Wed, 12 Jul 2017 01:05:12 -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=lPsqTQKEpp8GZCa83QDdJK1PRkg9ZIKpF6paM4D3Nlk=; b=cW+ihAEPitJ1gmn1ynwjqQuZneioQmOTSzILL/B2OTUXpSbBowUX3IVqPU9zoOl3dt iErsmPS+4lFtnKd1XmTBqI/gT6C13vK65/HxdoZrx1Lk2hG74QeVdpl39uUfIC4nhrtq tTAn8s/T/iPOOCnhfW/HyYjPxAxgBZVyQbnAY= 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=lPsqTQKEpp8GZCa83QDdJK1PRkg9ZIKpF6paM4D3Nlk=; b=ahzr8vlzGkP0nS19AzOJsCCbnLcPivOdbX9JIDfFdi8vhXWEB9Fb4Njj/HjdRPiUOz TE5CJvcvAbldV+T8v3qI1Txb4xF2KHQAyxguZA1/O2CtMRdbRZTCQLt3QavWh1GqmO7A hKW8vqnMw7pkQxrCf01ZJKJkm01noibs6UUkS0ZP4ouxCLSkZP/ddGaPsFmQj8EyzSZt o9qjN9rxVqVXSQ1bRv+CqkUZD/9AM6RLrbS0TAvF1A4CALUyfiqEENP3clpY78Sikep0 x/ZqUUh4ODtMpGSVflNFcY7iETOXVDq0IoHHe3KbILyeLbPPPUNO3oZjoDOCydWIemUW QE6g== X-Gm-Message-State: AIVw112lAChAkjiKDxDaGjjwA2jhHnQO3lp5//16jgdrFUghdFm5IzzC m3hMj5s+KchwjLhU X-Received: by 10.28.8.144 with SMTP id 138mr1566615wmi.8.1499846711150; Wed, 12 Jul 2017 01:05:11 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:10 -0700 (PDT) From: Benjamin Gaignard To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/22] x86: intel-mid: vrtc: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:22 +0200 Message-Id: <1499846682-14093-3-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: 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: Thomas Gleixner CC: Ingo Molnar CC: x86@kernel.org CC: linux-kernel@vger.kernel.org --- arch/x86/platform/intel-mid/intel_mid_vrtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/arch/x86/platform/intel-mid/intel_mid_vrtc.c b/arch/x86/platform/intel-mid/intel_mid_vrtc.c index 5802486..a177081 100644 --- a/arch/x86/platform/intel-mid/intel_mid_vrtc.c +++ b/arch/x86/platform/intel-mid/intel_mid_vrtc.c @@ -94,7 +94,7 @@ int vrtc_set_mmss(const struct timespec *now) int year; int retval = 0; - rtc_time_to_tm(now->tv_sec, &tm); + rtc_time64_to_tm(now->tv_sec, &tm); if (!rtc_valid_tm(&tm) && tm.tm_year >= 72) { /* * tm.year is the number of years since 1900, and the