drm/virtio: remove virtio_gpu_object_wait
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 29 Aug 2019 10:32:47 +0000 (12:32 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Sep 2019 04:54:08 +0000 (06:54 +0200)
No users left.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190829103301.3539-5-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_object.c

index e28829661724f33640732ade1189a04543e69e61..3e0a53309c5bf3c61672a40e830c1b3e3bd5a8ab 100644 (file)
@@ -364,7 +364,6 @@ int virtio_gpu_object_kmap(struct virtio_gpu_object *bo);
 int virtio_gpu_object_get_sg_table(struct virtio_gpu_device *qdev,
                                   struct virtio_gpu_object *bo);
 void virtio_gpu_object_free_sg_table(struct virtio_gpu_object *bo);
-int virtio_gpu_object_wait(struct virtio_gpu_object *bo, bool no_wait);
 
 /* virtgpu_prime.c */
 struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj);
index eb4d42f9d1d3e65f107ca7732a172ef4c789c258..ad216d062507433a67f133cba5508b3ab35ec941 100644 (file)
@@ -239,16 +239,3 @@ void virtio_gpu_object_free_sg_table(struct virtio_gpu_object *bo)
        kfree(bo->pages);
        bo->pages = NULL;
 }
-
-int virtio_gpu_object_wait(struct virtio_gpu_object *bo, bool no_wait)
-{
-       int r;
-
-       r = ttm_bo_reserve(&bo->tbo, true, no_wait, NULL);
-       if (unlikely(r != 0))
-               return r;
-       r = ttm_bo_wait(&bo->tbo, true, no_wait);
-       ttm_bo_unreserve(&bo->tbo);
-       return r;
-}
-