From patchwork Thu May 3 14:25:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10378523 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 C577560159 for ; Thu, 3 May 2018 14:27:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B31E329196 for ; Thu, 3 May 2018 14:27:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B1629195; Thu, 3 May 2018 14:27:26 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable 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 6EB1529195 for ; Thu, 3 May 2018 14:27:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 096736E71C; Thu, 3 May 2018 14:26:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x242.google.com (mail-wm0-x242.google.com [IPv6:2a00:1450:400c:c09::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id AC87B6E709 for ; Thu, 3 May 2018 14:26:24 +0000 (UTC) Received: by mail-wm0-x242.google.com with SMTP id o78so30853540wmg.0 for ; Thu, 03 May 2018 07:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eobdkAkA2H0D4WNcUiu7/pL72vEIW43nqpk5YtxTHJg=; b=MDkOgBB9QhBPfUMtxlTJeU1VSpv4cynT8kxlFUwuzwvZCUPBXt6fM+Bklxau9KVdTY RUTk/uOrv7/2V0opHV4l/JZJ54L/qyz09Qu1+N5kq2ekHdwGv3VpHtoQGHB1NV1HLjHu GfYrzYsev/9e1Sv1U+WSsxBC64wdTyf6OtGIo= 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=eobdkAkA2H0D4WNcUiu7/pL72vEIW43nqpk5YtxTHJg=; b=X6XIwwqzXI6EFvX4pSGnoSbO1Ju0ry+KA3zXio7hG3WdqjTO7tbmVBcz9Ugs+gnNGl sDLrPvZ+W2Y5ttTll23vukyBoo5PkEAh+p9MsFRbOcsGTe5QjitqhAO5YUvFlp6KQduG IARA/xsBhYWzdoM8lxTjFsWzVfr4PMVQ/dINo3fGYXbwoRjT//6Qegg5xccs/XrfqjMF gQh7asxEu2aPvoTyVfxau0Ms9LBeMLpznZX8CHan730cQYqe+S0Otfmke87rXbxrQLef xwwO59pE4m5R9Z8mvyXaZKwM0SzNllgCFl3plJooTEYj8F9vnDkkc0TAexixY+JTV8UL hJWw== X-Gm-Message-State: ALQs6tDmEgiEMkE4AV9rlf6y1GH3PWjOQhMGXjr7vo+L2XBXD7K9eiTt zw8m5GFVeYIr84OA8dCnfqKmPs5h X-Google-Smtp-Source: AB8JxZr1D2NIpq1dI141n1QTw1GJltgdiGeZ5RDteC+jS7VR2RHrf9nFXUalxrmGASmE7c4arvlOHg== X-Received: by 2002:a50:cc45:: with SMTP id n5-v6mr14107191edi.11.1525357583133; Thu, 03 May 2018 07:26:23 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id u5-v6sm8095647edi.79.2018.05.03.07.26.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 07:26:22 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH 11/15] drm/qxl: Remove unecessary dma_fence_ops Date: Thu, 3 May 2018 16:25:59 +0200 Message-Id: <20180503142603.28513-12-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180503142603.28513-1-daniel.vetter@ffwll.ch> References: <20180503142603.28513-1-daniel.vetter@ffwll.ch> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , virtualization@lists.linux-foundation.org, Gerd Hoffmann , Dave Airlie MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The trivial enable_signaling implementation matches the default code. v2: Fix up commit message to match patch better (Eric). Cc: Eric Anholt Reviewed-by: Eric Anholt Signed-off-by: Daniel Vetter Cc: Dave Airlie Cc: Gerd Hoffmann Cc: virtualization@lists.linux-foundation.org --- drivers/gpu/drm/qxl/qxl_release.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_release.c index 7cb214577275..e37f0097f744 100644 --- a/drivers/gpu/drm/qxl/qxl_release.c +++ b/drivers/gpu/drm/qxl/qxl_release.c @@ -50,12 +50,6 @@ static const char *qxl_get_timeline_name(struct dma_fence *fence) return "release"; } -static bool qxl_nop_signaling(struct dma_fence *fence) -{ - /* fences are always automatically signaled, so just pretend we did this.. */ - return true; -} - static long qxl_fence_wait(struct dma_fence *fence, bool intr, signed long timeout) { @@ -119,7 +113,6 @@ static long qxl_fence_wait(struct dma_fence *fence, bool intr, static const struct dma_fence_ops qxl_fence_ops = { .get_driver_name = qxl_get_driver_name, .get_timeline_name = qxl_get_timeline_name, - .enable_signaling = qxl_nop_signaling, .wait = qxl_fence_wait, };