drm/ttm/drivers: remove unecessary ttm_module.h include v2
Subsystems (7)
PATCH 1/1 drm/ttm/drivers: remove unecessary ttm_module.h include v2
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 <[email protected]>
Acked-by Daniel Vetter <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 -
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 -
drivers/gpu/drm/nouveau/nouveau_drv.h | 1 -
drivers/gpu/drm/qxl/qxl_drv.h | 1 -
drivers/gpu/drm/qxl/qxl_ttm.c | 1 -
drivers/gpu/drm/radeon/radeon.h | 1 -
drivers/gpu/drm/radeon/radeon_ttm.c | 1 -
drivers/gpu/drm/ttm/ttm_agp_backend.c | 1 -
drivers/gpu/drm/ttm/ttm_bo.c | 3 ++-
drivers/gpu/drm/ttm/ttm_bo_vm.c | 1 -
drivers/gpu/drm/ttm/ttm_memory.c | 3 ++-
drivers/gpu/drm/ttm/ttm_module.c | 3 ++-
{include => drivers/gpu}/drm/ttm/ttm_module.h | 0
drivers/gpu/drm/ttm/ttm_range_manager.c | 1 -
drivers/gpu/drm/vmwgfx/ttm_object.c | 1 -
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 1 -
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 1 -
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c | 1 -
drivers/gpu/drm/vmwgfx/vmwgfx_thp.c | 1 -
include/drm/ttm/ttm_bo_driver.h | 1 -
20 files changed, 6 insertions(+), 19 deletions(-)
rename {include => drivers/gpu}/drm/ttm/ttm_module.h (100%)drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -1
@@ -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>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +0 -1
@@ -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>
drivers/gpu/drm/nouveau/nouveau_drv.h +0 -1
@@ -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>
drivers/gpu/drm/qxl/qxl_drv.h +0 -1
@@ -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"
drivers/gpu/drm/qxl/qxl_ttm.c +0 -1
@@ -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"
drivers/gpu/drm/radeon/radeon.h +0 -1
@@ -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>
drivers/gpu/drm/radeon/radeon_ttm.c +0 -1
@@ -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"
drivers/gpu/drm/ttm/ttm_agp_backend.c +0 -1
@@ -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>
drivers/gpu/drm/ttm/ttm_bo.c +2 -1
@@ -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);/*
drivers/gpu/drm/ttm/ttm_bo_vm.c +0 -1
@@ -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>
drivers/gpu/drm/ttm/ttm_memory.c +2 -1
@@ -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 4struct ttm_mem_global ttm_mem_glob;
drivers/gpu/drm/ttm/ttm_module.c +2 -1
@@ -32,9 +32,10 @@#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;
drivers/gpu/drm/ttm/ttm_module.h renamed from include/drm/ttm/ttm_module.h +0 -0
drivers/gpu/drm/ttm/ttm_range_manager.c +0 -1
@@ -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>
drivers/gpu/drm/vmwgfx/ttm_object.c +0 -1
@@ -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>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +0 -1
@@ -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"
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +0 -1
@@ -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"
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c +0 -1
@@ -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>
drivers/gpu/drm/vmwgfx/vmwgfx_thp.c +0 -1
@@ -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>
include/drm/ttm/ttm_bo_driver.h +0 -1
@@ -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"
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel