From patchwork Mon Jun 18 15:38:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10472127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9E3E2601D7 for ; Mon, 18 Jun 2018 15:39:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B5BC28917 for ; Mon, 18 Jun 2018 15:39:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BD2328931; Mon, 18 Jun 2018 15:39:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4298C28917 for ; Mon, 18 Jun 2018 15:39:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BF876E44B; Mon, 18 Jun 2018 15:39:15 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id DFA736E44B; Mon, 18 Jun 2018 15:39:13 +0000 (UTC) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LaHLm-1fvnLw2x7W-00m7Rl; Mon, 18 Jun 2018 17:38:58 +0200 From: Arnd Bergmann To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie Date: Mon, 18 Jun 2018 17:38:43 +0200 Message-Id: <20180618153855.2126048-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:IRb8mVSQ+Gj9fFmjbMGgIO3Cqt6iGRS8zJJf9ZwifaBf65BAurY S91maZj2IDuDTVHuinD2rp4CygQnH1XiWNXbTRTZNGBscH/ZR+G/mZtMr+O582T7zZrm7bf e6dFCydmhWKgIiZklUOqaK1L0CzJ/v7LmT8oBKPIQwgVDA0qGdPyZlQlMXHQAbYmL0rGRl7 qBV+g10nXUbk8qNtWgOYQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:tbX1LIrG9DI=:Zy4VjHWpZpTw76AJTz0L58 v4a5tRL/XxYlm42P9NUF+vBJPBxzHgwGwZzo0BkSjkqacBhLev3UbbSdCBEfih8uHR6d6HTJe qBwXW6Esyu1ESxgKnmGuwdUPCQeNYYnL3Y7OG6goy3e1nbrTao3YBwgghY1v1FU43lY9o+WSj /lx9qNNxdOiugGhIx1HcLBGCXE0UDJf5yG5yhr88hNS8lYIXKeHtZ4TuTRb8VJG2Hyw5IBmH+ QrhVz8At0N7j722VbgbN7vGWHDtQtYV4wdS9TCIuC0Z13ZXXajo/ODdBuwF4e69rSCgvKxz3d Vt+5jTHRSbYMd6+/lmeGatWT6sgD0gyYiMZ/vkbFR9zcJiE4BEyLauHeayxM+Yxz3nBJamWW4 Z44Hiak7UFQWTXR3lrTMgcXujfgI+C1pAD08s8edeSbp2dfkkgCpxMiurNkK8mVXtP4mwGkNT KAjDskBb/VoNH0PhJhLxpuzkGgEc2huejrQpeo7gMJ7p09qmQnzoteOMDTVRz3t4i1Gl+yFaP VyQ+55/vyoSIk+RhbCeVEJcXOlWRmUG+T1TXyxawBw2uvKreqBChgksrK1kHz8pbp8ess88lX jbUxJa6bUzLNJZ6HRmFk7kj4P6ihur80zK4e/KRdr5fNe7yBsdVBXh4bLQPTMa+UNymz1E9yr p0smdavKm20KEBUU/v8BxFBLsaSjPA4pibe3nvwYfzHFeS581CZbMXOmPVa70zacbCH0= Subject: [Intel-gfx] [PATCH] i915: remove timespec_to_jiffies_timeout X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , y2038@lists.linaro.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This function has been unused since commit 5ed0bdf21a85 ("drm: i915: Use nsec based interfaces"). Let's remove the definition as well now to help get rid of all uses of 'timespec'. Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/i915/i915_drv.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 34c125e2d90c..5f61676e8fb8 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -3673,14 +3673,6 @@ static inline unsigned long nsecs_to_jiffies_timeout(const u64 n) return min_t(u64, MAX_JIFFY_OFFSET, nsecs_to_jiffies64(n) + 1); } -static inline unsigned long -timespec_to_jiffies_timeout(const struct timespec *value) -{ - unsigned long j = timespec_to_jiffies(value); - - return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1); -} - /* * If you need to wait X milliseconds between events A and B, but event B * doesn't happen exactly after event A, you record the timestamp (jiffies) of