From patchwork Tue Jun 20 09:35:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 105942 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1274541qgd; Tue, 20 Jun 2017 02:37:08 -0700 (PDT) X-Received: by 10.98.149.21 with SMTP id p21mr29512163pfd.37.1497951428312; Tue, 20 Jun 2017 02:37:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497951428; cv=none; d=google.com; s=arc-20160816; b=RCaHecazu6aQSN4bu83sJW+NDrTQjJnwv06zwBfLZ0I8yd5Dn4PlwD5dwhYtxt0Vay E1KYnEzgRqh6pzqMwzngH3t0dkQWfadE2wGLoVVymR/Jcj7OAR7e97oqPrLmf7wqzAMd a8tPVw9rCayRUp+CNxciws8m/tkWrPwUoNM8chEHuir0k1o6nsP5FjJuvlZhBra5KGIC 2uRQu2EqNWjq+jeJpZ5ZKPFShuIwkoZ2cWG7299bH3Xc3uweDPOLDEYdNS5mSX9YbCEn 0kQkf8qHo8eF+Jki9Nychx5/iahONvtRqeSs45IVVukKZ8bQyFCVRv8GGx/31IT+1/QX N0LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=AK7fs5spG4bWPbdYb9/2Cv5+2O+njFmniNVVEqUkcvs=; b=zec/ALmW/px8Lvgpcgk2hV3DdMJfOjXZKU6+KF0GXkeJK5JgeeqixMdpn6dlH/Ln/l 3C9O/jK6oJuCr1z2vzvub4wPHYvZ8LHMpFeM3gqbtCw1cqMRHdlBrY5nvxEy4Ns65ChX DVWLppxqx72JxNF8DFx7HJ+fKTL1Xu/A/D3c9mgJ8NFdXiLOTSnPMWzS9diQ8e1inwh0 IgNunIlNDPz4NuGplfXiKE49nUj1NFU+TvGpXBCAWcE1LYo0PFubpBjcfiaG/X/Dzuna /Z/f/3fXyCKY0PC4bbFtrKqeqXh/A861mxqCZL0l8Z1xsKUBesSkn/JEms499PCMZVhp zOlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=ChwQImI7; 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 f1si10715480pld.384.2017.06.20.02.37.08; Tue, 20 Jun 2017 02:37:08 -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=ChwQImI7; 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 S1752355AbdFTJhF (ORCPT + 25 others); Tue, 20 Jun 2017 05:37:05 -0400 Received: from mail-wr0-f169.google.com ([209.85.128.169]:36614 "EHLO mail-wr0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155AbdFTJg6 (ORCPT ); Tue, 20 Jun 2017 05:36:58 -0400 Received: by mail-wr0-f169.google.com with SMTP id c11so32938427wrc.3 for ; Tue, 20 Jun 2017 02:36:58 -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; bh=AK7fs5spG4bWPbdYb9/2Cv5+2O+njFmniNVVEqUkcvs=; b=ChwQImI7sgqSxDKgrwlp/k9WDSwazgpGqXHDjdEnzpsZbDC07EmTUaHVTGylBzJd9u JKjo0SHvPQxCwtwBap5cfUSdmUwlMNfdY8PnxTai70Lsiyt8pLQZO4obrZnA5in1/kuz u2u3hW8m9gJO6sF6BiJZsrukqFHXIlW6ZxBuc= 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; bh=AK7fs5spG4bWPbdYb9/2Cv5+2O+njFmniNVVEqUkcvs=; b=AdwKuJEIAlXwC+NmjSaY65OMEdGE9T/jSmrMS4sATWpmDPoAu1KSDkvfPtunJvQPbz znxXMOVFL7E6ZpxhCc6oT40Dicmy7ELLHroGdhz2TE5B/9tuGMpXTgpJS49YLT+PU8lf myROgDgEO3NfLXjP90G4jVgvnhiJXgZ/IxFCCt+VNIDPj4viqkWPgAZLIAJb7oM4dfnT +m3KpwrsHY/UlQBmk4RyYnWcZ3Em2M/9mbpaenbswTkTteclVPOHjQfoX+YmKiZbrj8e vmPRCIkWBhyvLV6rgiR7RASlDLwHZHO7n6OeVz3FibGI8V+HtGBDkC7aek2qg8O+U7It v4Lg== X-Gm-Message-State: AKS2vOylsOliGhz1dc/KcIteMz6gNGZFdeGLH8adKhgX+R9WQZ/BNVqI VHlkTQK6feyTxyNs X-Received: by 10.223.134.43 with SMTP id 40mr21779356wrv.114.1497951417207; Tue, 20 Jun 2017 02:36:57 -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.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:36:56 -0700 (PDT) From: Benjamin Gaignard To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, adi-buildroot-devel@lists.sourceforge.net, Alessandro Zummo , Alexandre Belloni , Gregory Clement , Ingo Molnar , Jason Cooper , John Stultz , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Michael Chan , netdev@vger.kernel.org, rtc-linux@googlegroups.com, Sebastian Hesselbarth , Support Opensource , Thomas Gleixner , x86@kernel.org, Baruch Siach , Hans Ulli Kroll , Vladimir Zapolskiy , Sylvain Lemieux , Barry Song , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org, patches@opensource.wolfsonmicro.com, "Rafael J. Wysocki" , Pavel Machek , Len Brown , linux-pm@vger.kernel.org Subject: [PATCH 00/51] rtc: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:08 +0200 Message-Id: <1497951359-13334-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 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. The goal of this series of patches is ti stop using those two functions and use instead to safer 64bits ones. It also remove change .set_mmss to set_mmss64 callback for the same reasons. Those 51 patches almost clean all the drivers except the few that I haven't been able to compile because of cross-toolchains issues (au1xxx, mpc5121, ps3, puv3, sun4v, tx4939, starfire, ls1x ...) Obviously I don't have all those hardwares in my hands so I have only check that the patches compile without warnings but it up to each maintainer to valid them on real hardware. Benjamin Gaignard (51): x86: rtc: stop using rtc deprecated functions x86: intel-mid: vrtc: stop using rtc deprecated functions net: broadcom: stop using rtc deprecated functions rtc: 88pm80x: stop using rtc deprecated functions rtc: 88pm860x: stop using rtc deprecated functions rtc: ab-b5ze-s3: stop using rtc deprecated functions rtc: ab8500: stop using rtc deprecated functions rtc: armada38x: stop using rtc deprecated functions rtc: at32ap700x: stop using rtc deprecated functions rtc: at91sam9: stop using rtc deprecated functions rtc: bfin: stop using rtc deprecated functions rtc: coh901331: stop using rtc deprecated functions rtc: cpcap: stop using rtc deprecated functions rtc: da9063: stop using rtc deprecated functions rtc: da9063: stop using rtc deprecated functions rtc: davinci: stop using rtc deprecated functions rtc: digicolor: stop using rtc deprecated functions rtc: dm355evm: stop using rtc deprecated functions rtc: ds1305: stop using rtc deprecated functions rtc: ds1374: stop using rtc deprecated functions rtc: ds1511: stop using rtc deprecated functions rtc: ds1553: stop using rtc deprecated functions rtc: ds1672: stop using rtc deprecated functions rtc: ds2404: stop using rtc deprecated functions rtc: ep93xx: stop using rtc deprecated functions rtc: gemini: stop using rtc deprecated functions rtc: imxdi: stop using rtc deprecated functions rtc: jz4740: stop using rtc deprecated functions rtc: lpc32xx: stop using rtc deprecated functions rtc: mv: stop using rtc deprecated functions rtc: omap: stop using rtc deprecated functions rtc: pcap: stop using rtc deprecated functions rtc: pl030: stop using rtc deprecated functions rtc: pl031: stop using rtc deprecated functions rtc: pm8xxx: stop using rtc deprecated functions rtc: rs5c348: stop using rtc deprecated functions rtc: sa1100: stop using rtc deprecated functions rtc: sh: stop using rtc deprecated functions rtc: sirfsoc: stop using rtc deprecated functions rtc: snvs: stop using rtc deprecated functions rtc: stk17ta8: stop using rtc deprecated functions rtc: stmp3xxx: stop using rtc deprecated functions rtc: sun6i: stop using rtc deprecated functions rtc: sysfs: stop using rtc deprecated functions rtc: tegra stop using rtc deprecated functions rtc: test: stop using rtc deprecated functions rtc: tps6586: stop using rtc deprecated functions rtc: vr41xx: stop using rtc deprecated functions rtc: wm831x: stop using rtc deprecated functions rtc: xgene stop using rtc deprecated functions power: suspend test: stop using rtc deprecated functions arch/x86/kernel/rtc.c | 6 ++-- arch/x86/platform/intel-mid/intel_mid_vrtc.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- drivers/rtc/rtc-88pm80x.c | 44 +++++++++++++-------------- drivers/rtc/rtc-88pm860x.c | 40 ++++++++++++------------- drivers/rtc/rtc-ab-b5ze-s3.c | 45 ++++++++-------------------- drivers/rtc/rtc-ab8500.c | 26 ++++++++-------- drivers/rtc/rtc-armada38x.c | 34 +++++++++------------ drivers/rtc/rtc-at32ap700x.c | 29 ++++++++---------- drivers/rtc/rtc-at91sam9.c | 18 ++++------- drivers/rtc/rtc-bfin.c | 24 +++++++-------- drivers/rtc/rtc-coh901331.c | 14 +++++---- drivers/rtc/rtc-cpcap.c | 8 ++--- drivers/rtc/rtc-da9052.c | 8 ++--- drivers/rtc/rtc-da9063.c | 8 ++--- drivers/rtc/rtc-davinci.c | 8 ++--- drivers/rtc/rtc-digicolor.c | 4 +-- drivers/rtc/rtc-dm355evm.c | 6 ++-- drivers/rtc/rtc-ds1305.c | 11 +++---- drivers/rtc/rtc-ds1374.c | 6 ++-- drivers/rtc/rtc-ds1511.c | 2 +- drivers/rtc/rtc-ds1553.c | 2 +- drivers/rtc/rtc-ds1672.c | 8 ++--- drivers/rtc/rtc-ds2404.c | 8 ++--- drivers/rtc/rtc-ep93xx.c | 10 +++---- drivers/rtc/rtc-gemini.c | 8 ++--- drivers/rtc/rtc-imxdi.c | 16 +++++----- drivers/rtc/rtc-jz4740.c | 12 ++++---- drivers/rtc/rtc-lpc32xx.c | 19 +++++------- drivers/rtc/rtc-mv.c | 2 +- drivers/rtc/rtc-omap.c | 6 ++-- drivers/rtc/rtc-pcap.c | 16 +++++----- drivers/rtc/rtc-pl030.c | 24 +++++++-------- drivers/rtc/rtc-pl031.c | 31 ++++++++----------- drivers/rtc/rtc-pm8xxx.c | 22 +++++++------- drivers/rtc/rtc-rs5c348.c | 4 +-- drivers/rtc/rtc-sa1100.c | 25 +++++++--------- drivers/rtc/rtc-sh.c | 2 +- drivers/rtc/rtc-sirfsoc.c | 18 +++++------ drivers/rtc/rtc-snvs.c | 14 ++++----- drivers/rtc/rtc-stk17ta8.c | 2 +- drivers/rtc/rtc-stmp3xxx.c | 12 ++++---- drivers/rtc/rtc-sun6i.c | 14 ++++----- drivers/rtc/rtc-sysfs.c | 25 ++++++++-------- drivers/rtc/rtc-tegra.c | 22 +++++++------- drivers/rtc/rtc-test.c | 17 +---------- drivers/rtc/rtc-tps6586x.c | 26 ++++++++-------- drivers/rtc/rtc-vr41xx.c | 6 ++-- drivers/rtc/rtc-wm831x.c | 28 +++++++---------- drivers/rtc/rtc-xgene.c | 12 ++++---- kernel/power/suspend_test.c | 6 ++-- 51 files changed, 342 insertions(+), 420 deletions(-) -- CC: adi-buildroot-devel@lists.sourceforge.net CC: Alessandro Zummo CC: Alexandre Belloni CC: Gregory Clement CC: Ingo Molnar CC: Jason Cooper CC: John Stultz CC: linux-arm-kernel@lists.infradead.org CC: linux-kernel@vger.kernel.org CC: Linus Walleij CC: Michael Chan CC: netdev@vger.kernel.org CC: rtc-linux@googlegroups.com CC: Sebastian Hesselbarth CC: Support Opensource CC: Thomas Gleixner CC: x86@kernel.org CC: Baruch Siach CC: Hans Ulli Kroll CC: Vladimir Zapolskiy CC: Sylvain Lemieux CC: Barry Song CC: Maxime Ripard CC: Chen-Yu Tsai CC: Thierry Reding CC: Jonathan Hunter CC: linux-tegra@vger.kernel.org CC: patches@opensource.wolfsonmicro.com CC: "Rafael J. Wysocki" CC: Pavel Machek CC: Len Brown CC: linux-pm@vger.kernel.org 1.9.1