drm/ttm: drop ttm_buffer_object->resv
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 5 Aug 2019 14:01:19 +0000 (16:01 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 6 Aug 2019 06:21:54 +0000 (08:21 +0200)
All users moved to ttm_buffer_object->base.resv

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190805140119.7337-18-kraxel@redhat.com
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h

index 6b8e785..10a861a 100644 (file)
@@ -1332,11 +1332,9 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
        bo->acc_size = acc_size;
        bo->sg = sg;
        if (resv) {
-               bo->resv = resv;
                bo->base.resv = resv;
                reservation_object_assert_held(bo->base.resv);
        } else {
-               bo->resv = &bo->base._resv;
                bo->base.resv = &bo->base._resv;
        }
        if (!ttm_bo_uses_embedded_gem_object(bo)) {
index 7ffc50a..65ef537 100644 (file)
@@ -230,7 +230,6 @@ struct ttm_buffer_object {
 
        struct sg_table *sg;
 
-       struct reservation_object *resv;
        struct mutex wu_mutex;
 };