From patchwork Thu Feb 22 13:54:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 10235619 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 11C09605BA for ; Thu, 22 Feb 2018 13:54:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F04428C17 for ; Thu, 22 Feb 2018 13:54:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03A9728CC7; Thu, 22 Feb 2018 13:54:40 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID 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 6DACA28C17 for ; Thu, 22 Feb 2018 13:54:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F08B6EDD2; Thu, 22 Feb 2018 13:54:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id D30796EDD2 for ; Thu, 22 Feb 2018 13:54:30 +0000 (UTC) Received: by mail-wr0-x242.google.com with SMTP id u49so10633220wrc.10 for ; Thu, 22 Feb 2018 05:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9pqqA5Wxe5JdRn97laj5Bgwfxy4K3eBBhBy80JD1Ols=; b=kpFls2BhwQvTGkNs8SjD2roHIiPi/mFBmWAC90ndP4vz3EGI3dZPIrWPX9dh40g6qJ 4creBTo2iXqUQqgIn6KM6QdxLRqDVrL4VQVZKsRCgONVt+K4jJbgsxlSEVmxYx55I/m2 gtUoLFx1MdKEKi29qKpA8+t+DBwoMKPsehIfFiry+FyYJAGHEmrZtHk8TkB8FhsWTxON bxlM5O7WIAzhCU3dATBLEA3a1Q1V9fa172NRuZpHu5ixjkUq5864nxcWe4/irhtBjDCe lT1+a9DgtDQZdAIdGO/ZeNz7Yh1vT03IEq/1Zz50q3bs46oJ8KqObUOHCYCn+KIQmEjC MKAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=9pqqA5Wxe5JdRn97laj5Bgwfxy4K3eBBhBy80JD1Ols=; b=NeEms611YCjCUB4ImjyyTj7pj5vRAdlyWcrJGRLyGcAfsT2h2lyEpXDIhocjfxM21q EzpWv2ZBT0z3BhJB/ecVXyZ0vnoKl4wb9lNwDN3HIlCfzixlsnhxfwNE1tAvfJFe9knh K+A+jxV+cslgs9qYEquQEJD3IzzJr+5ABqTg1mCqN55zE6XC7RiowabrSDugroB2gIPe HsyL7BvsDBJ6nwr7zBKYfLTu1kjXhimOD/gWXiM7DhbbnANvdnlf7UBTQl+oR+ahRYTX 4xDyWC7id9gLMsYwBV23WW87yuNu9AnWAdNX6C9gf9ti7PeLiCzt2Ff5JRKmyXX8H1WC RtVA== X-Gm-Message-State: APf1xPCSyhKy36VxAkEXuiQNHU8jhmDDk5BJ1TFYV8fK3rtJNuxS2VX0 /uF4Jez4uYfMfjVfS1bEXnJqsg== X-Google-Smtp-Source: AH8x225cwwehMFnDITGUuPUiPTgfXgMeBHINymhLHfZsylHLqU9Lg4ofpdyG72rwrloB4PvCmzTSrg== X-Received: by 10.223.165.145 with SMTP id g17mr6353583wrc.169.1519307669043; Thu, 22 Feb 2018 05:54:29 -0800 (PST) Received: from baker.fritz.box ([2a02:908:1251:8fc0:88c:4715:87af:fa74]) by smtp.gmail.com with ESMTPSA id 128sm554402wmi.20.2018.02.22.05.54.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 05:54:28 -0800 (PST) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] staging: vboxvideo: remove ttm_pool_* wrappers Date: Thu, 22 Feb 2018 14:54:27 +0100 Message-Id: <20180222135427.66861-1-christian.koenig@amd.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP TTM calls the default implementation now. Signed-off-by: Christian König Reviewed-by: Daniel Vetter --- drivers/staging/vboxvideo/vbox_ttm.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/staging/vboxvideo/vbox_ttm.c b/drivers/staging/vboxvideo/vbox_ttm.c index 2ea31589d773..c4b7a6b9abd5 100644 --- a/drivers/staging/vboxvideo/vbox_ttm.c +++ b/drivers/staging/vboxvideo/vbox_ttm.c @@ -213,21 +213,8 @@ static struct ttm_tt *vbox_ttm_tt_create(struct ttm_bo_device *bdev, return tt; } -static int vbox_ttm_tt_populate(struct ttm_tt *ttm, - struct ttm_operation_ctx *ctx) -{ - return ttm_pool_populate(ttm, ctx); -} - -static void vbox_ttm_tt_unpopulate(struct ttm_tt *ttm) -{ - ttm_pool_unpopulate(ttm); -} - static struct ttm_bo_driver vbox_bo_driver = { .ttm_tt_create = vbox_ttm_tt_create, - .ttm_tt_populate = vbox_ttm_tt_populate, - .ttm_tt_unpopulate = vbox_ttm_tt_unpopulate, .init_mem_type = vbox_bo_init_mem_type, .eviction_valuable = ttm_bo_eviction_valuable, .evict_flags = vbox_bo_evict_flags,