drm/ttm: ttm_bo_device is now ttm_device
Subsystems (4)
PATCH 1/2 drm/ttm: ttm_bo_device is now ttm_device
These names were changed in
commit 8af8a109b34fa88b8b91f25d11485b37d37549c3
Author: Christian König <[email protected]> Date: Thu Oct 1 14:51:40 2020 +0200
drm/ttm: device naming cleanup
But he missed a couple of them.
Signed-off-by Jason Ekstrand <[email protected]>
Cc Christian König <[email protected]>
Fixes 8af8a109b34f ("drm/ttm: device naming cleanup")
--- Documentation/gpu/drm-mm.rst | 2 +- include/drm/ttm/ttm_tt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/gpu/drm-mm.rst +1 -1
@@ -37,7 +37,7 @@ TTM initialization This section is outdated. Drivers wishing to support TTM must pass a filled :c:type:`ttm_bo_driver -<ttm_bo_driver>` structure to ttm_bo_device_init, together with an +<ttm_bo_driver>` structure to ttm_device_init, together with an initialized global reference to the memory manager. The ttm_bo_driver structure contains several fields with function pointers for initializing the TTM, allocating and freeing memory, waiting for command
include/drm/ttm/ttm_tt.h +1 -1
@@ -31,7 +31,7 @@#include <drm/ttm/ttm_caching.h> #include <drm/ttm/ttm_kmap_iter.h> -struct ttm_bo_device ; +struct ttm_device ;struct ttm_tt ;struct ttm_resource ;struct ttm_buffer_object ;
Signature · 1 line
2.31.1
PATCH 2/2 drm/ttm: Include pagemap.h from ttm_tt.h
It's needed for pgprot_t which is used in the header.
Signed-off-by Jason Ekstrand <[email protected]>
Cc Christian König <[email protected]>
--- drivers/gpu/drm/ttm/ttm_tt.c | 1 - include/drm/ttm/ttm_tt.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_tt.c +0 -1
@@ -32,7 +32,6 @@#define pr_fmt (fmt) "[TTM] " fmt#include <linux/sched.h> -#include <linux/pagemap.h> #include <linux/shmem_fs.h> #include <linux/file.h> #include <drm/drm_cache.h>
include/drm/ttm/ttm_tt.h +1 -0
@@ -27,6 +27,7 @@#ifndef _TTM_TT_H_#define _TTM_TT_H_ +#include <linux/pagemap.h> #include <linux/types.h> #include <drm/ttm/ttm_caching.h> #include <drm/ttm/ttm_kmap_iter.h>
Signature · 1 line
2.31.1
Reviewed and pushed to drm-misc-next-fixes.
Thanks,
Christian.
Am 12.08.21 um 22:34 schrieb Jason Ekstrand:
Quoted 44 lines
These names were changed in
commit
8af8a109b34fa88b8b91f25d11485b37d37549c3Author: Christian König <[email protected]> Date: Thu Oct 1 14:51:40 2020 +0200drm/ttm: device naming cleanup
But he missed a couple of them.
Signed-off-by Jason Ekstrand <[email protected]>Cc Christian König <[email protected]>Fixes 8af8a109b34f ("drm/ttm: device naming cleanup")--- Documentation/gpu/drm-mm.rst | 2 +- include/drm/ttm/ttm_tt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)Documentation/gpu/drm-mm.rst +1
-1@@ -37,7 +37,7 @@ TTM initialization This section is outdated. Drivers wishing to support TTM must pass a filled :c:type:`ttm_bo_driver -<ttm_bo_driver>` structure to ttm_bo_device_init, together with an +<ttm_bo_driver>` structure to ttm_device_init, together with an initialized global reference to the memory manager. The ttm_bo_driver structure contains several fields with function pointers for initializing the TTM, allocating and freeing memory, waiting for commandinclude/drm/ttm/ttm_tt.h +1
-1@@ -31,7 +31,7 @@#include <drm/ttm/ttm_caching.h> #include <drm/ttm/ttm_kmap_iter.h> -struct ttm_bo_device ; +struct ttm_device ;struct ttm_tt ;struct ttm_resource ;struct ttm_buffer_object ;