mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
drm/virtio: drop virtio_gpu_object_{ref,unref}
No users left. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Link: http://patchwork.freedesktop.org/patch/msgid/20190829103301.3539-17-kraxel@redhat.com
This commit is contained in:
parent
2e0d9ee457
commit
fe16537ddb
1 changed files with 0 additions and 15 deletions
|
@ -363,21 +363,6 @@ struct drm_gem_object *virtgpu_gem_prime_import_sg_table(
|
|||
struct drm_device *dev, struct dma_buf_attachment *attach,
|
||||
struct sg_table *sgt);
|
||||
|
||||
static inline struct virtio_gpu_object*
|
||||
virtio_gpu_object_ref(struct virtio_gpu_object *bo)
|
||||
{
|
||||
drm_gem_object_get(&bo->base.base);
|
||||
return bo;
|
||||
}
|
||||
|
||||
static inline void virtio_gpu_object_unref(struct virtio_gpu_object **bo)
|
||||
{
|
||||
if ((*bo) == NULL)
|
||||
return;
|
||||
drm_gem_object_put(&(*bo)->base.base);
|
||||
*bo = NULL;
|
||||
}
|
||||
|
||||
static inline u64 virtio_gpu_object_mmap_offset(struct virtio_gpu_object *bo)
|
||||
{
|
||||
return drm_vma_node_offset_addr(&bo->base.base.vma_node);
|
||||
|
|
Loading…
Add table
Reference in a new issue