From patchwork Mon Nov 27 11:42:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 119682 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp131079qgn; Mon, 27 Nov 2017 03:43:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMZIKwJWp9VFTcAxxjOoKj0EkstDxD5Pm4fOCvaF3DNj3k4x6HONRBq8RI5onGJzMnCJqxac X-Received: by 10.101.67.1 with SMTP id j1mr7575405pgq.367.1511782994964; Mon, 27 Nov 2017 03:43:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511782994; cv=none; d=google.com; s=arc-20160816; b=RRS503674VolzrVGjT+c2wZe9gzJyJDaTCA78pMcN2h8wMEJkqOQt25nylTxF5KGU7 Fek23LZ2tUp6FXhYIS6l87IDILPzTaCx3STJjMYUmnd5ZqAi3w9jZheY/Fi6b8/DjARt 08fPjFEu836tPcSeG8vjvU//OfJWXE4E0EqhwsLYPYvsWXbBQBFQlhy5jjb4jO32i4fu 3AJE4f0uVQAhyPS2LjHfN2vEUV4+qVeQsHMzkzaSHiYyW8WJtG0tKDi0cJYw5jHXfCQo F+yYWdBvoZHjmCldOCEor/fxQUkCaNYgYPozEczOp3gvv+eh5VexsIm8VSqz1/FE8NiL 04TQ== 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 :arc-authentication-results; bh=mSoiozW+gw5rz/axOrBoa1lRlxf5lA2iRBjC4yaDTnU=; b=ycu+HI4vUoP+h7EkY2shyVkmVIvg6cD44QzMXQispy2+zX6jf1tZkzvV4U2dUT/HXq epH2EsMiv/oFti0rCwFJD+BuWvyKFCMDNlYCjt/khDlLj/bTF/laZA3nTArbWJzfgR9U lCEJOC4kMR5oi8FKEf3qRVW1Lj6EHfn8o0wFtuxVCtY6p/oNTgMSrQBtUfZu0bGr01dO zZlOPijBjVaS5BvselZiHW9zFs+17VKnuEKFXDEaJj1qlkCsESAaAtM7yKLeUbqeaj3Z m4HQMNvqk1z93yrf4Coy403zIv+TIoLaOIxNkKgahDB3oKa1hn6gfoVdpUI87GVSWQPm tuiA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si5246860pfc.349.2017.11.27.03.43.14; Mon, 27 Nov 2017 03:43:14 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752167AbdK0LnN (ORCPT + 28 others); Mon, 27 Nov 2017 06:43:13 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:64416 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751670AbdK0LnL (ORCPT ); Mon, 27 Nov 2017 06:43:11 -0500 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MYNQf-1eetHi3tFB-00VC80; Mon, 27 Nov 2017 12:42:48 +0100 From: Arnd Bergmann To: Sebastian Reichel Cc: y2038@lists.linaro.org, Arnd Bergmann , Ross Zwisler , Ingo Molnar , Dave Jiang , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] HSI: cmt_speech: use timespec64 instead of timespec Date: Mon, 27 Nov 2017 12:42:34 +0100 Message-Id: <20171127114246.2559451-1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k+Vm/C5Psnie+Nx4Y5QxOENg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct timespec should no longer be used because of the y2038 overflow problem. This code does not suffer from the overflow, but it's trivial to change it to use timespec64 without changing the interface, so let's do that. Signed-off-by: Arnd Bergmann --- drivers/hsi/clients/cmt_speech.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c index 727f968ac1cb..05b80723d39d 100644 --- a/drivers/hsi/clients/cmt_speech.c +++ b/drivers/hsi/clients/cmt_speech.c @@ -451,11 +451,11 @@ static void cs_hsi_read_on_control_complete(struct hsi_msg *msg) dev_dbg(&hi->cl->device, "Read on control: %08X\n", cmd); cs_release_cmd(msg); if (hi->flags & CS_FEAT_TSTAMP_RX_CTRL) { - struct timespec tspec; + struct timespec64 tspec; struct cs_timestamp *tstamp = &hi->mmap_cfg->tstamp_rx_ctrl; - ktime_get_ts(&tspec); + ktime_get_ts64(&tspec); tstamp->tv_sec = (__u32) tspec.tv_sec; tstamp->tv_nsec = (__u32) tspec.tv_nsec;