From patchwork Tue Jun 20 09:35:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 105992 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1282400qgd; Tue, 20 Jun 2017 03:01:27 -0700 (PDT) X-Received: by 10.99.117.89 with SMTP id f25mr12454881pgn.5.1497952887390; Tue, 20 Jun 2017 03:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497952887; cv=none; d=google.com; s=arc-20160816; b=fCpVYD5Q+Qb9KMxlyw0tS/1nDuV/G04kWTAtPp3cXxz9vIt05CFcfvQUOrAq0c9TvG wGoY75vT8iX9IoDFuY4chHjflg/v3fnyVXJIlKQZClaId2V8A68ZYC6OZbo4p1Zs2AUz TlG6qlopmfLo7nmusGLjO7/2mEPRYkwh6VEXVeFLqJFRHQV6ziPQ1nwXjdBTZsnHmAxv 2mfG8ZP757TF0VLaN85crfBrpg8corDz9hbquwerkAng+PF/0zIFG09Gpls4jXMjoV+4 8SOXVrQ1qeT93jqT3tMuKmkifyWD1HHU3fB45/15wTQ+TA/kE2ew86TKubtpoHR8XfJD 7uvA== 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=Y4alZgmbP1FU4zXeViMBkJuR+Kxas4DFeRz9P8c+pXs=; b=L2bU/R+42AC+hh1K2Uobp6uzFqKTg2P5oASEJNbbBGeIPAf22IU55oKSgvCZ/VM5p/ 5AD3DsyqiYAPmO+YN888UVxMarzZPCWwFyXxfATK0YOT0TvjOleA1cYfarPLQVfC4Toz opSRlx5EwE1hOBPyVFJk/5QRyjrJ3ZhUi5iG8aFypwaY121p54t7U9P2liL93EtqUW3i tDBnq75qe4y6dcimhp/gQDKsjCXSb3PLlX9iQtx+YLbPIKlE7uGYac9ZUEUxoAL4zCUj W4RnQeqZhs1Beh0PeB9+6QNinaufAn0FIp/Kd2LLK9Je31AUhp2/jNXDI/k6dtjBzt9g VRFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=QcXovNAj; 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 g13si11911022pln.618.2017.06.20.03.01.26; Tue, 20 Jun 2017 03:01:27 -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=QcXovNAj; 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 S1752362AbdFTKBD (ORCPT + 25 others); Tue, 20 Jun 2017 06:01:03 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:37434 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752586AbdFTJhE (ORCPT ); Tue, 20 Jun 2017 05:37:04 -0400 Received: by mail-wm0-f44.google.com with SMTP id d73so14608516wma.0 for ; Tue, 20 Jun 2017 02:37:03 -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=Y4alZgmbP1FU4zXeViMBkJuR+Kxas4DFeRz9P8c+pXs=; b=QcXovNAjjLK5u+CE5l+O53AYesGdeWIrTuwh0csD2XOjNbqYNEDqVSngjCIWGS1hJ4 D8/LCGf4/DGoq63rhORER483QdEmCqElk3PqRSLZ67TYtx6DkQQ1J8Zxg2R3rfW8mIKN Zer8VI2gTE/oMiWpFYlt7DjeWX3gbJ+1Lv4r8= 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=Y4alZgmbP1FU4zXeViMBkJuR+Kxas4DFeRz9P8c+pXs=; b=DsAVbyQNzMcyckVIRFYP3pfdX+4OaOM/Ec3rwj/fKNoM5kiRNYwC1/F+ch3N1aUdEH UDGb6OKTRpVOtqgf8xObZQFOiFKPXSUQXGYdS3PHw1acqM5HLY6BJvLaqwfx2vmxWqKH j6R5IFv6Rp4PvFCbwcjdyw2xPOIhvyeEIbWpvE0oFPhC+fIkSzvHX80bQKZnm28zMmfK /HrWt1oSohl3ocKn9atbbeKKNN9dJTckvmtL52Y1pfb66AcK/9CPGPjaWZJZjKZWb5lJ IlW5/n/Umv2y/Mg800IboKrEEmZWHOqvFFcmZL6+i1CrPW6FwgsW+kMLL4NgX3PfW2Xn 6+UA== X-Gm-Message-State: AKS2vOxolFDPnVGfm/OQtZ9KenRHz84VHcQkkyM6q0YPaqvgVq+NtEN0 mXyQOKxmaO51k1Zr X-Received: by 10.28.208.207 with SMTP id h198mr2043704wmg.40.1497951422622; Tue, 20 Jun 2017 02:37:02 -0700 (PDT) Received: from lmenx321.st.com. ([80.215.93.217]) by smtp.gmail.com with ESMTPSA id e24sm4482318wrc.35.2017.06.20.02.37.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 02:37:02 -0700 (PDT) From: Benjamin Gaignard To: benjamin.gaignard@linaro.org Cc: linaro-kernel@lists.linaro.org, Michael Chan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/51] net: broadcom: stop using rtc deprecated functions Date: Tue, 20 Jun 2017 11:35:11 +0200 Message-Id: <1497951359-13334-4-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: Michael Chan CC: netdev@vger.kernel.org CC: linux-kernel@vger.kernel.org --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index b56c54d..9fef202 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -4703,7 +4703,7 @@ int bnxt_hwrm_fw_set_time(struct bnxt *bp) return -EOPNOTSUPP; do_gettimeofday(&tv); - rtc_time_to_tm(tv.tv_sec, &tm); + rtc_time64_to_tm(tv.tv_sec, &tm); bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FW_SET_TIME, -1, -1); req.year = cpu_to_le16(1900 + tm.tm_year); req.month = 1 + tm.tm_mon;