All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device
@ 2021-08-12 20:34 Jason Ekstrand
  2021-08-12 20:34 ` [PATCH 2/2] drm/ttm: Include pagemap.h from ttm_tt.h Jason Ekstrand
  2021-08-16 12:44 ` [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device Christian König
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Ekstrand @ 2021-08-12 20:34 UTC (permalink / raw)
  To: dri-devel; +Cc: Jason Ekstrand, Christian König

These names were changed in

commit 8af8a109b34fa88b8b91f25d11485b37d37549c3
Author: Christian König <christian.koenig@amd.com>
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 <jason@jlekstrand.net>
Cc: Christian König <christian.koenig@amd.com>
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(-)

diff --git a/Documentation/gpu/drm-mm.rst b/Documentation/gpu/drm-mm.rst
index d5a73fa2c9ef..8126beadc7df 100644
--- a/Documentation/gpu/drm-mm.rst
+++ b/Documentation/gpu/drm-mm.rst
@@ -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
diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h
index 818680c6a8ed..0d97967bf955 100644
--- a/include/drm/ttm/ttm_tt.h
+++ b/include/drm/ttm/ttm_tt.h
@@ -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;
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] drm/ttm: Include pagemap.h from ttm_tt.h
  2021-08-12 20:34 [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device Jason Ekstrand
@ 2021-08-12 20:34 ` Jason Ekstrand
  2021-08-16 12:44 ` [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device Christian König
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Ekstrand @ 2021-08-12 20:34 UTC (permalink / raw)
  To: dri-devel; +Cc: Jason Ekstrand, Christian König

It's needed for pgprot_t which is used in the header.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/ttm/ttm_tt.c | 1 -
 include/drm/ttm/ttm_tt.h     | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c
index 24031a8acd2d..d5cd8b5dc0bf 100644
--- a/drivers/gpu/drm/ttm/ttm_tt.c
+++ b/drivers/gpu/drm/ttm/ttm_tt.c
@@ -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>
diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h
index 0d97967bf955..b20e89d321b0 100644
--- a/include/drm/ttm/ttm_tt.h
+++ b/include/drm/ttm/ttm_tt.h
@@ -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>
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device
  2021-08-12 20:34 [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device Jason Ekstrand
  2021-08-12 20:34 ` [PATCH 2/2] drm/ttm: Include pagemap.h from ttm_tt.h Jason Ekstrand
@ 2021-08-16 12:44 ` Christian König
  1 sibling, 0 replies; 3+ messages in thread
From: Christian König @ 2021-08-16 12:44 UTC (permalink / raw)
  To: Jason Ekstrand, dri-devel

Reviewed and pushed to drm-misc-next-fixes.

Thanks,
Christian.

Am 12.08.21 um 22:34 schrieb Jason Ekstrand:
> These names were changed in
>
> commit 8af8a109b34fa88b8b91f25d11485b37d37549c3
> Author: Christian König <christian.koenig@amd.com>
> 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 <jason@jlekstrand.net>
> Cc: Christian König <christian.koenig@amd.com>
> 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(-)
>
> diff --git a/Documentation/gpu/drm-mm.rst b/Documentation/gpu/drm-mm.rst
> index d5a73fa2c9ef..8126beadc7df 100644
> --- a/Documentation/gpu/drm-mm.rst
> +++ b/Documentation/gpu/drm-mm.rst
> @@ -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
> diff --git a/include/drm/ttm/ttm_tt.h b/include/drm/ttm/ttm_tt.h
> index 818680c6a8ed..0d97967bf955 100644
> --- a/include/drm/ttm/ttm_tt.h
> +++ b/include/drm/ttm/ttm_tt.h
> @@ -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;


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-16 12:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12 20:34 [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device Jason Ekstrand
2021-08-12 20:34 ` [PATCH 2/2] drm/ttm: Include pagemap.h from ttm_tt.h Jason Ekstrand
2021-08-16 12:44 ` [PATCH 1/2] drm/ttm: ttm_bo_device is now ttm_device Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.