Commit 6e337250 authored by Gerd Hoffmann's avatar Gerd Hoffmann

drm/virtio: drop virtio_gpu_object_{reserve, unreserve}

No users left.
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190829103301.3539-18-kraxel@redhat.com
parent fe16537d
...@@ -368,27 +368,6 @@ static inline u64 virtio_gpu_object_mmap_offset(struct virtio_gpu_object *bo) ...@@ -368,27 +368,6 @@ static inline u64 virtio_gpu_object_mmap_offset(struct virtio_gpu_object *bo)
return drm_vma_node_offset_addr(&bo->base.base.vma_node); return drm_vma_node_offset_addr(&bo->base.base.vma_node);
} }
static inline int virtio_gpu_object_reserve(struct virtio_gpu_object *bo)
{
int r;
r = dma_resv_lock_interruptible(bo->base.base.resv, NULL);
if (unlikely(r != 0)) {
if (r != -EINTR) {
struct virtio_gpu_device *qdev =
bo->base.base.dev->dev_private;
dev_err(qdev->dev, "%p reserve failed\n", bo);
}
return r;
}
return 0;
}
static inline void virtio_gpu_object_unreserve(struct virtio_gpu_object *bo)
{
dma_resv_unlock(bo->base.base.resv);
}
/* virgl debufs */ /* virgl debufs */
int virtio_gpu_debugfs_init(struct drm_minor *minor); int virtio_gpu_debugfs_init(struct drm_minor *minor);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment