drm/vgem: Drop struct drm_vgem_gem_object
Subsystems (2)
PATCH 1/1 drm/vgem: Drop struct drm_vgem_gem_object
Commit 45d9c8dde4cd ("drm/vgem: use shmem helpers") introduced shmem helpers to vgem and with that, removed all uses of the struct drm_vgem_gem_object. So, as the struct is no longer used, delete it.
Signed-off-by Maíra Canal <[email protected]>
--- drivers/gpu/drm/vgem/vgem_drv.h | 11 ----------- 1 file changed, 11 deletions(-)
drivers/gpu/drm/vgem/vgem_drv.h +0 -11
@@ -39,17 +39,6 @@ struct vgem_file {struct mutex fence_mutex; }; -#define to_vgem_bo (x) container_of(x, struct drm_vgem_gem_object, base) -struct drm_vgem_gem_object { -struct drm_gem_object base; - -struct page **pages; -unsigned int pages_pin_count; -struct mutex pages_lock; - -struct sg_table *table; -}; -int vgem_fence_open (struct vgem_file *file); int vgem_fence_attach_ioctl(struct drm_device *dev, void *data,
Signature · 1 line
2.39.2
Quoted 4 lines · Maíra Canal
Commit
45d9c8dde4cd("drm/vgem: use shmem helpers") introduced shmem helpers to vgem and with that, removed all uses of the structdrm_vgem_gem_object. So, as the struct is no longer used, delete it.
Thanks,
Reviewed-by Melissa Wen <[email protected]>
Quoted 30 lines
Signed-off-by Maíra Canal <[email protected]>--- drivers/gpu/drm/vgem/vgem_drv.h | 11 ----------- 1 file changed, 11 deletions(-)drivers/gpu/drm/vgem/vgem_drv.h +0
-11@@ -39,17 +39,6 @@ struct vgem_file {struct mutex fence_mutex; }; -#define to_vgem_bo (x) container_of(x, struct drm_vgem_gem_object, base) -struct drm_vgem_gem_object { -struct drm_gem_object base; - -struct page **pages; -unsigned int pages_pin_count; -struct mutex pages_lock; - -struct sg_table *table; -}; -int vgem_fence_open (struct vgem_file *file); int vgem_fence_attach_ioctl(struct drm_device *dev, void *data,Signature · 1 line
2.39.2
Maíra Canal
AppliedQuoted 6 lines · Maíra Canal
Commit
45d9c8dde4cd("drm/vgem: use shmem helpers") introduced shmem helpers to vgem and with that, removed all uses of the structdrm_vgem_gem_object. So, as the struct is no longer used, delete it.Signed-off-by Maíra Canal <[email protected]>---
Applied to drm-misc-next.
Best Regards,
- Maíra Canal
Quoted 25 lines
drivers/gpu/drm/vgem/vgem_drv.h | 11 ----------- 1 file changed, 11 deletions(-)drivers/gpu/drm/vgem/vgem_drv.h +0
-11@@ -39,17 +39,6 @@ struct vgem_file {struct mutex fence_mutex; }; -#define to_vgem_bo (x) container_of(x, struct drm_vgem_gem_object, base) -struct drm_vgem_gem_object { -struct drm_gem_object base; - -struct page **pages; -unsigned int pages_pin_count; -struct mutex pages_lock; - -struct sg_table *table; -}; -int vgem_fence_open (struct vgem_file *file); int vgem_fence_attach_ioctl(struct drm_device *dev, void *data,