From patchwork Wed Jul 12 08:04:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 107470 Delivered-To: patch@linaro.org Received: by 10.182.45.195 with SMTP id p3csp608186obm; Wed, 12 Jul 2017 01:14:16 -0700 (PDT) X-Received: by 10.84.131.163 with SMTP id d32mr2810074pld.16.1499847256805; Wed, 12 Jul 2017 01:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499847256; cv=none; d=google.com; s=arc-20160816; b=wsPEQu4eLFzhnfVbqpvNX8VcbLiUKj4Nv+0GkejH95y1BiKAzgis1ECCfLBK4cl3Md 1rU3XLjyMXyf/CM+koPDfKKmB/Sl2vEjVKo953FTmjraRG4hDkFBLY8vbwTDJaXDLuGb dgt2nhYoowHX7E1EysBz3xEB0aSp4szIXRr5oRcDsej4vrBxj4rVuQhAMYRIBa/nFd8D iVe9MpK8zwhg3LPj/Hl9vPKp2CnodJCEHG9ce0m5uWCBdYQFhT1cm2/6bBH/fWlRFKQ+ Jo46HxwfjkZ1mSpSBv+XhDI2FR9WnlXjqjxRK9I+60hSZ5SPMGT8eep9FY7YGGZwnanG 6vdQ== 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=pQDpMQXsp+5vkFEbSSjDCyDNiynEg99s+z+yIkPD9ND09e/hBV7zkXWB+kXgdqr+CM Xb2548hAiiyCaqXZiaJKZ+g5vkpe4sd8bko3tKsH9u9c6GZlY3oKfWMf7hm3cPCaDNeK hPtkZj3wYoWU7EEuELW7Rw5bySYhUFfQyTC6n95f9RS+KUM1DfJj+ZuIpyNYOapJB8Pg 5Np4dFt2IrI6y+5BamF93G8Sb2FVewkCirewc0TUrPack7V1vBB9bsaFhtPgWg+Hicyy dekRGsVVJePkXI/+PE6BZjpkL86rqQM9hNx2yAdKB1MtiMPWxO8HgGRUxj1Q//SjUmnn uJZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=keNCbJYN; 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 b5si1487832plk.410.2017.07.12.01.14.16; Wed, 12 Jul 2017 01:14:16 -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=keNCbJYN; 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 S933887AbdGLIOH (ORCPT + 25 others); Wed, 12 Jul 2017 04:14:07 -0400 Received: from mail-wr0-f179.google.com ([209.85.128.179]:35666 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756904AbdGLIFO (ORCPT ); Wed, 12 Jul 2017 04:05:14 -0400 Received: by mail-wr0-f179.google.com with SMTP id k67so22360122wrc.2 for ; Wed, 12 Jul 2017 01:05:13 -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=keNCbJYND2yo9Yts8GtDAGu3vO6gAvffkAIgXR+Id/tjUB8CfXZsJZoQiMnhW05skm pphXc4ATvWJnB/mmfF4yvH9Qwlm/KErBdukUQiN+5WazTXYkP3ymSORBH8w6fnmpFFch Wdh22N3Ccq8HGyMjjycK8f752y6wq4u7GM+8o= 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=lrYwP01NttsQ8/Pxkpah6wJVnZyqH3MtGPcC3k0VK7aqIH3sSlrUT3U7b/83aFN6LR 0OIefS4fM86uWvS7UGuAO4BvUiK2kvLzmT89N6HxMLwtpIJXsFEYfbV5jPpDp/i/SstL gEsxROtAhlE6SqWbAUYiUyh0d0tpm64t7WjrWd8iNOunMv7hNE4hFDlb9YuHVZ/D3Pd+ SpATX1a68pzQY8UjOY10vXjJcDsdCkQCubM5IeHSyKGu3GKKfazWVKBI+nqUboAYd/ST ssutUzTrByIGbFt+eRKCMCLzK7W+nxT0b0W72Ps9V9gMRln9KwcyHjJZXY4unUVSFOFE +Nkw== X-Gm-Message-State: AIVw111McC7ukS08P0xgfSyCCL04CuxsBKHZ7FV9qrGGEvo77JGFLnYA p/beYD2XxXOZv02g X-Received: by 10.28.199.200 with SMTP id x191mr1528934wmf.94.1499846712641; Wed, 12 Jul 2017 01:05:12 -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.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 12 Jul 2017 01:05:12 -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 v2 03/22] net: broadcom: stop using rtc deprecated functions Date: Wed, 12 Jul 2017 10:04:23 +0200 Message-Id: <1499846682-14093-4-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: 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 Acked-by: Michael Chan 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;