From patchwork Thu Oct 12 09:48:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 115598 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1738608qgn; Thu, 12 Oct 2017 02:49:04 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBELOtvj8Ai79pKUe4KY5G492n2stQfkQrgeLeM3rxYhTprQr4ZDfEe4xgCxyvx1F/pIUzw X-Received: by 10.99.131.66 with SMTP id h63mr1627642pge.156.1507801744707; Thu, 12 Oct 2017 02:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507801744; cv=none; d=google.com; s=arc-20160816; b=TjQ61QednIO9dh7TBDEKcJ59kn+goUEzm8rmeCVskYffVcEAQP+GRIBdFvrJRWeWaV yu7ah2TLAQz6YzNV331xJlf1eQDvEPhEPz5YP0oAZTjgrfwSx5zrJPn27jGHoVbiL5yH I9ynkrH3/Vc+0UfJyMnyP/t9RPCDKM5rFXRwR6AxlFXhjhZT6ilHGLFMJ8wwKb8XyGOv 8iQzyBf2pQ5BhVY2dwBKOdhvVkIYpstjfriQ7ioa3XdXHvhk1VQGu+3v0D1+6LWBhVtU 05Exj2h4lmra+eexW7mSyeCaopWaHT0QGn5Xi9j0mS/U9D36vrecM3qebP+Vqop3fl9C 3xmQ== 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=InHYeUQdGStAnuociciXh3/09dL49NmWM2uMqGLa9G8=; b=FuL+cOKrkaXYm8PBwnCGcSu4/5DAQvYAH16dUfD+cplb+JvfT+lCn941q8Y73lsS2U 0RsnSbnDF3I7MPUkJf0ku2AGaP57y2ajOqjlUO7ljEmGiaicTrKcXe7HAWYWxuWy2/3N 6s5R5xzfCme1YV/AHfWy9dcd/R7J4pjcvT3cBetK6AEyFz00+ek+XPF6f3/SnWCMuqI1 E+maD8I57jRQcbbxNvUtTlvkxphbnCIsoiDJeR+tPfzJYrMutPZstJqCJuo+jeUB20hN k7xgJttSaoGBhAyVy01OT6nYlM62C20j9M5TQBT86tw+tagiEZqkF/zgCcaCZ5US7G1l Y+5g== 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 u71si11290911pgc.536.2017.10.12.02.49.04; Thu, 12 Oct 2017 02:49:04 -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; 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 S1752453AbdJLJtC (ORCPT + 27 others); Thu, 12 Oct 2017 05:49:02 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:56400 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbdJLJs6 (ORCPT ); Thu, 12 Oct 2017 05:48:58 -0400 Received: from wuerfel.lan ([46.223.139.202]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MSmRQ-1dsiiY0APk-00Rcef; Thu, 12 Oct 2017 11:48:46 +0200 From: Arnd Bergmann To: Derek Chickles , Satanand Burla , Felix Manlunas , Raghu Vatsavayi Cc: Arnd Bergmann , "David S. Miller" , Intiyaz Basha , Rick Farrington , VSR Burru , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net] liquidio: fix timespec64_to_ns typo Date: Thu, 12 Oct 2017 11:48:31 +0200 Message-Id: <20171012094841.3178599-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:KpnuRFbBrBU5+HKZHPvSsNIC/MXnOByA5lc6ZGHLsgpinYrYZY4 q7CfDmYUK3q6+/uqzRjnVGiL6DhQdwcGuvY66qSdWq+griy5Jr8I15FQe1MRNDas+zCp3ee MsdQJgLA1IQA4iieZgB4VdLLUdfw/XxNR/B+rQtjL3+Hhq1FgSNK8IXpKKjS9CRO8BkY3ut grvHXPWflIyduz002ZmKQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:kB8AaxqLafg=:rJd4EPPvSkkC9Gq/NAe0ee 5sORZpP6eQVXiavJqBRz5tpQ307TauRmOnRTTH9/Zk2X8CJRY5wcDv4LOwBUbNdqUTGxIlnKP XApriL6Aaq7LL6bxvjG7toF1D7fPVTUP3XYD3W7TKypz8iBqANZTzPqO1KCxMSdUh4ViItRoe 9xA5T4KleFqrCpJtXStKgkUAskKNOfSiRMH5ZtqK9O/57ucouJM16JZ1Jj9k9eQcQ2vx7JzrK hTP3fBaD7Q3QwxIfy5/a8bqXKDUupNmjT2ZJpcCwZ0KZXKBQcQ2jvX/o7M+iEAP48y2Sj72Sg jvce4RicyB0oLqk6NxPQ+STG6yoYcCMWNFbfsGpnPt159KrCBh1NmUcwPeMa8wQH8m5ttNG0d GaQHj1JWHgjm/6+gl5e4Wg+GThjpf1t0GZhcredfKhgBGUzi+s+aE49Vk0TVuiyDGwR1I8Pxt GLqE/O4qO5IwECx88BHM4c9xTKjLMM12Sa6E2/ADFADyqFDlJQ4BbQCXNbsDOIdf5UJTlc+x7 at5TKBphL6p0IfBBPjdwG11XsASjLzbH0qGlcoXxtvjdT8Zfy8d1nkSy93tjFZW/vpx6O+AlL isGUb7O7kiO8F4wlVSIdKPGaiYRc4yPZIep92sJPoT/n/6NA0OsO0vhDrPMr/sQ80O60/FTQh oTz5Gy4Sg2uPRJ6MhpuL2pb45aHIytJ91bBoZZu5HylHTzTBK8udLgGu+uPQiE2A8Hmm/SOJE iGhQWBNPCGqz9GFhwzS4b/5witre8NKOaWtJpw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While experimenting with changes to the timekeeping code, I ran into a build error in the liquidio driver: drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_ptp_settime': drivers/net/ethernet/cavium/liquidio/lio_main.c:1850:22: error: passing argument 1 of 'timespec_to_ns' from incompatible pointer type [-Werror=incompatible-pointer-types] The driver had a type mismatch since it was first merged, but this never caused problems because it is only built on 64-bit architectures that define timespec and timespec64 to the same type. If we ever want to compile-test the driver on 32-bit or change the way that 64-bit timespec64 is defined, we need to fix it, so let's just do it now. Fixes: f21fb3ed364b ("Add support of Cavium Liquidio ethernet adapters") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/cavium/liquidio/lio_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 Acked-by: Felix Manlunas diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c index 963803bc6633..eafae3eb4fed 100644 --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c @@ -1847,7 +1847,7 @@ static int liquidio_ptp_settime(struct ptp_clock_info *ptp, struct lio *lio = container_of(ptp, struct lio, ptp_info); struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; - ns = timespec_to_ns(ts); + ns = timespec64_to_ns(ts); spin_lock_irqsave(&lio->ptp_lock, flags); lio_pci_writeq(oct, ns, CN6XXX_MIO_PTP_CLOCK_HI);