lkml.org 
[lkml]   [2019]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v7 17/18] drm/virtio: drop virtio_gpu_object_{reserve,unreserve}
Date
No users left.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
drivers/gpu/drm/virtio/virtgpu_drv.h | 21 ---------------------
1 file changed, 21 deletions(-)

diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h
index 59f71dc94017..fb35831ed351 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.h
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.h
@@ -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);
}

-static inline int virtio_gpu_object_reserve(struct virtio_gpu_object *bo)
-{
- int r;
-
- r = reservation_object_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)
-{
- reservation_object_unlock(bo->base.base.resv);
-}
-
/* virgl debufs */
int virtio_gpu_debugfs_init(struct drm_minor *minor);

--
2.18.1
\
 
 \ /
  Last update: 2019-08-02 15:14    [W:0.023 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site