Message ID | 1497951359-13334-3-git-send-email-benjamin.gaignard@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1282778qgd; Tue, 20 Jun 2017 03:02:09 -0700 (PDT) X-Received: by 10.101.86.11 with SMTP id l11mr30007279pgs.202.1497952929201; Tue, 20 Jun 2017 03:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497952929; cv=none; d=google.com; s=arc-20160816; b=MQAStaH2pdRSgMvP/bZMRtdM8JPWRODTw/Eg2twc3Z5mMEJ73pGM+ss9l/wflcbdQ6 4DJTWlbS3fhjYnUCI3/ZXFlv380FQqv7lVAo57bZ6WkpQm3kNhM8jvg+6+L3eMa/aU7N hQFhivnIVl21mW3u5M4A4qDe4pqONeU/mDistJ7THmCbyuNGWEMCq+YUQWVRPF+bBLm6 SoPsqjAS07VhSGlYMc5Rbe1UniWh9XphOciVjV6e/5iS4fvwnm3KgIOgQS5nsQSnpRhO j4iIQkRderpLmPp+AOgCleP2+/aC7qtMbQioCcy77OUzkkLQlqEvMEzQ8k2tI+qjAP6A EXRA== 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=UyT1iYkU0g62h909H46N2vYy5Bt5hRQHmcGaYcR92DMJ0pAOjsR+9qKPn3qWlN+1A4 b7jGvYywuQeK8tpGAFANjdihSA66oed+fXPmYZYla/U3sDulyB4SKqW0Two5FW2e41EI 3tgmp6e07pk6RFE7+ACAouA4/9yq/MaqnrYUCcqrUmZCIRFfmo3qYoigCqH/+6Svrudm 8g+mDbWrYcdaKUO2iWQYNu6QFOpFvbN6uInnNz7b/6SByrKg/V/m9sNumJd9UEsjhkKc P2kktw+U4s3nyn1srjf5mJowQvsc6Mr8/qmZlHf6+ql44KHARYx54cjmPDb/ANpLwxNX 2dxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=k2XqjD+J; 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 m1si11608803pld.361.2017.06.20.03.02.08; Tue, 20 Jun 2017 03:02:09 -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=k2XqjD+J; 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 S1752227AbdFTKB7 (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Tue, 20 Jun 2017 06:01:59 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38183 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752230AbdFTJhB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Jun 2017 05:37:01 -0400 Received: by mail-wm0-f54.google.com with SMTP id u195so14549186wmd.1 for <linux-kernel@vger.kernel.org>; Tue, 20 Jun 2017 02:37:01 -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=k2XqjD+JnbbG9NQMAOMwqufjFFc6KhoqztEnkMbTlejwEFrvnI0FgMz6t5ofXw8Apz bx18G0gD5pi0O4k0i0FyuJvottlGkVeTSxNlkCWWlk8Vtzu/hGgJN9JNFpLTh+ULFAdJ dQbYIUNjo2pl8+nq77/AARrH71Vc7vlZR/GNc= 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=dB+G42lIbHiOfPijbJFL9foEnry0JkaEREhxQRVffLLtunu7S/cBMRg1nglO0Eu5yN WsaYMA9r5lWF9i781WNP72WNdKdeXYtbBYJ2+GGpSZJS/YyRvS3F8J7cerF6vF3cbxOJ VDXp9Qani+OUXVhuNYMXIw0XY4LHHYsrbsJGmcPZ8yGRrStYEpPE3bEHXyQFRiwkPw/y CCksiP/6buIOk013LNWg60PXCyWA/ia+inEKg1zBEkTIfTAMNp8RCUcQgupytFbBIhJd 3fKLbiwKPDD3PIHd3FNQjNasbFhpuR/YaKdVHUIJC2VACCyKAiTN2U6nrdkfamuDFdh2 qgmw== X-Gm-Message-State: AKS2vOzED+funydDhyuNjPi2c9TPdbIh+aQAZMT0+wscoRE9Nmj4zYky 8meIjV+GRtcAcSoM X-Received: by 10.28.45.5 with SMTP id t5mr2139528wmt.50.1497951420525; Tue, 20 Jun 2017 02:37:00 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.93.217]) by smtp.gmail.com with ESMTPSA id e24sm4482318wrc.35.2017.06.20.02.36.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:37:00 -0700 (PDT) From: Benjamin Gaignard <benjamin.gaignard@linaro.org> To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/51] x86: intel-mid: vrtc: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:10 +0200 Message-Id: <1497951359-13334-3-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
rtc: stop using rtc deprecated functions
|
expand
|
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
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: Thomas Gleixner <tglx@linutronix.de> CC: Ingo Molnar <mingo@redhat.com> 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