OSDN Git Service

drm/ttm: rename manager variable to make sure wrapper is used.
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:56:16 +0000 (12:56 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 03:12:21 +0000 (13:12 +1000)
Other users of this should notice this change and switch to wrapper.

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-44-airlied@gmail.com
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_driver.h

index 7474679..4d87ee9 100644 (file)
@@ -1615,7 +1615,7 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
 
        bdev->driver = driver;
 
-       memset(bdev->man, 0, sizeof(bdev->man));
+       memset(bdev->man_priv, 0, sizeof(bdev->man_priv));
 
        ttm_bo_init_sysman(bdev);
 
index c8ea5ea..f97c047 100644 (file)
@@ -415,7 +415,10 @@ struct ttm_bo_device {
         */
        struct list_head device_list;
        struct ttm_bo_driver *driver;
-       struct ttm_mem_type_manager man[TTM_NUM_MEM_TYPES];
+       /*
+        * access via ttm_manager_type.
+        */
+       struct ttm_mem_type_manager man_priv[TTM_NUM_MEM_TYPES];
 
        /*
         * Protected by internal locks.
@@ -447,7 +450,7 @@ struct ttm_bo_device {
 static inline struct ttm_mem_type_manager *ttm_manager_type(struct ttm_bo_device *bdev,
                                                            int mem_type)
 {
-       return &bdev->man[mem_type];
+       return &bdev->man_priv[mem_type];
 }
 
 /**