]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/ttm/drivers: remove unecessary ttm_module.h include v2
authorChristian König <christian.koenig@amd.com>
Tue, 17 Nov 2020 14:44:07 +0000 (15:44 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 1 Dec 2020 16:43:46 +0000 (17:43 +0100)
ttm_module.h deals with internals of TTM and should never
be include outside of it.

v2: also move the file around

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/404885/
20 files changed:
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/qxl/qxl_drv.h
drivers/gpu/drm/qxl/qxl_ttm.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_agp_backend.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_vm.c
drivers/gpu/drm/ttm/ttm_memory.c
drivers/gpu/drm/ttm/ttm_module.c
drivers/gpu/drm/ttm/ttm_module.h [moved from include/drm/ttm/ttm_module.h with 100% similarity]
drivers/gpu/drm/ttm/ttm_range_manager.c
drivers/gpu/drm/vmwgfx/ttm_object.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c
drivers/gpu/drm/vmwgfx/vmwgfx_thp.c
include/drm/ttm/ttm_bo_driver.h

index 6eceef23d838401b287b9a7d5c75fef2134abfc7..b2ccf944a3181016613cd8d6d3e9866155219a59 100644 (file)
@@ -55,7 +55,6 @@
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_execbuf_util.h>
 
 #include <drm/amdgpu_drm.h>
index a34fedcc8b61b5a85d7317da3020db6a8c49bc50..ec93d4fdabbd5b6013817f9de86156a0d191d382 100644 (file)
@@ -46,7 +46,6 @@
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
-#include <drm/ttm/ttm_module.h>
 
 #include <drm/drm_debugfs.h>
 #include <drm/amdgpu_drm.h>
index 9d04d1b364343538e4b7a97f6f084ea72aedcef1..c802d3d1ba3949840907ef287d57fe576df455f2 100644 (file)
@@ -55,7 +55,6 @@
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <drm/ttm/ttm_memory.h>
-#include <drm/ttm/ttm_module.h>
 
 #include <drm/drm_audio_component.h>
 
index 8bd0f916dfbc25a70f4e8088ca2061c8d6456262..83b54f0dad61886f0582b8657ce4f9b2f220b28a 100644 (file)
@@ -46,7 +46,6 @@
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_execbuf_util.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_placement.h>
 
 #include "qxl_dev.h"
index d42e750cbdd37ae85e19a463581d3bf44b7594ac..38e2b117a085644c30262f6d51106a7485b88cd4 100644 (file)
@@ -31,7 +31,6 @@
 #include <drm/qxl_drm.h>
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_placement.h>
 
 #include "qxl_drv.h"
index 28cb8ced91b95cbc8d2f74881e186944a3e60026..428c561a4e2c92b434d99f9b2954e72329ebeb90 100644 (file)
@@ -75,7 +75,6 @@
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_execbuf_util.h>
 
 #include <drm/drm_gem.h>
index f1f7adb67c8e6beb01f6a06efb2dbb81a5727e08..a3432c6343ba42508288c71550210f394fc4350e 100644 (file)
@@ -46,7 +46,6 @@
 #include <drm/radeon_drm.h>
 #include <drm/ttm/ttm_bo_api.h>
 #include <drm/ttm/ttm_bo_driver.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_placement.h>
 
 #include "radeon_reg.h"
index 03c86628e4ac4aaade39d85d5f10dd54e0edcde5..8f9fa418889723e84e01d3656107d5ca2664b9e7 100644 (file)
@@ -32,7 +32,6 @@
 
 #define pr_fmt(fmt) "[TTM] " fmt
 
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <linux/agp_backend.h>
index fc6b619c0329109ce652fc033c93b6bd2a141886..02cc5d247c0d304a82c7f7c59f0803004c0efbf0 100644 (file)
@@ -31,7 +31,6 @@
 
 #define pr_fmt(fmt) "[TTM] " fmt
 
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <linux/jiffies.h>
@@ -43,6 +42,8 @@
 #include <linux/atomic.h>
 #include <linux/dma-resv.h>
 
+#include "ttm_module.h"
+
 static void ttm_bo_global_kobj_release(struct kobject *kobj);
 
 /*
index 2944fa0af493550e9eac609a7b17ba82a4ff6840..144a4940b6b6e857a84d2749e2ef0f7dcdf55bc0 100644 (file)
@@ -31,7 +31,6 @@
 
 #define pr_fmt(fmt) "[TTM] " fmt
 
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <drm/drm_vma_manager.h>
index 5ed1fc8f2ace3fdc7097a718ed1a0d23dea5848d..a3bfbd9cea680d3b6bf80ec3acbf7d6bd272a35f 100644 (file)
@@ -29,7 +29,6 @@
 #define pr_fmt(fmt) "[TTM] " fmt
 
 #include <drm/ttm/ttm_memory.h>
-#include <drm/ttm/ttm_module.h>
 #include <linux/spinlock.h>
 #include <linux/sched.h>
 #include <linux/wait.h>
@@ -39,6 +38,8 @@
 #include <linux/swap.h>
 #include <drm/ttm/ttm_pool.h>
 
+#include "ttm_module.h"
+
 #define TTM_MEMORY_ALLOC_RETRIES 4
 
 struct ttm_mem_global ttm_mem_glob;
index 6ff40c041d799d2bb8c24eb42b5a6a513926caad..c0906437cb1c9bcae9698aa13d91b8f4ecb5a6d2 100644 (file)
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/sched.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/drm_sysfs.h>
 
+#include "ttm_module.h"
+
 static DECLARE_WAIT_QUEUE_HEAD(exit_q);
 static atomic_t device_released;
 
index e0952444cea930485d9f19534da36b39b4a9476d..a39305f742da209759044b53cbe560eaea6a1273 100644 (file)
@@ -29,7 +29,6 @@
  * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
  */
 
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <drm/drm_mm.h>
index 16077785ad47eeb0d6d7d53d0881ce978af62500..0fe869d0fad12692cbde574a0642d5421de9a313 100644 (file)
@@ -59,7 +59,6 @@
 
 #define pr_fmt(fmt) "[TTM] " fmt
 
-#include <drm/ttm/ttm_module.h>
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/slab.h>
index 216daf93022c6f4b57e56cf0ae9b318c2625ff8c..0008be02d31cc4aa06a034b6695b0a0135b07c46 100644 (file)
@@ -35,7 +35,6 @@
 #include <drm/drm_ioctl.h>
 #include <drm/drm_sysfs.h>
 #include <drm/ttm/ttm_bo_driver.h>
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_placement.h>
 
 #include "ttm_object.h"
index b45becbb00f8e2e1b8148379eb7089d74c30e8da..5b9a28157dd38cf2287d8c15d978809093b18c2f 100644 (file)
@@ -39,7 +39,6 @@
 
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_execbuf_util.h>
-#include <drm/ttm/ttm_module.h>
 
 #include "ttm_lock.h"
 #include "ttm_object.h"
index be325a62c1781c17329fd6fbccafb12b859999e1..8fe26e32f9203c8eaf17ed5b560d4ac7d4614b8f 100644 (file)
@@ -29,7 +29,6 @@
  */
 
 #include "vmwgfx_drv.h"
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 #include <linux/idr.h>
index 155ca3a5c7e55400596bec864bb0cc1d0ba5aebc..e8e79de255cf73c136b4ca283c2697f0a0b315df 100644 (file)
@@ -5,7 +5,6 @@
  * Copyright (C) 2007-2019 Vmware, Inc. All rights reservedd.
  */
 #include "vmwgfx_drv.h"
-#include <drm/ttm/ttm_module.h>
 #include <drm/ttm/ttm_bo_driver.h>
 #include <drm/ttm/ttm_placement.h>
 
index f02f7cf9ae9063b195602c0a1af456e24e1a886e..b1d1ce9740c402a0d48aa1dd004859f6cd956630 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "ttm_bo_api.h"
 #include "ttm_memory.h"
-#include "ttm_module.h"
 #include "ttm_placement.h"
 #include "ttm_tt.h"
 #include "ttm_pool.h"