linux/drivers/gpu/drm/ttm
Lucas De Marchi 685c407f16 drm/ttm: Fix build with CONFIG_DEBUG_FS=n
Move the define outside the ifdef for CONFIG_DEBUG_FS to fix the build.
This currently breaks drm kunit tests:

	$ ./tools/testing/kunit/kunit.py run --kunitconfig drivers/gpu/drm/ttm/tests/.kunitconfig
	ERROR:root:../drivers/gpu/drm/ttm/ttm_pool.c: In function ‘ttm_pool_mgr_init’:
	../drivers/gpu/drm/ttm/ttm_pool.c:1335:30: error: ‘TTM_SHRINKER_BATCH’ undeclared (first use in this function)
	 1335 |         mm_shrinker->batch = TTM_SHRINKER_BATCH;

Fixes: 22b929b252 ("drm/ttm: Increase pool shrinker batch target")
Cc: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20250603184750.3304647-2-lucas.demarchi@intel.com
History 2025-06-04 08:23:21 +01:00
..
tests drm/ttm/tests: fix incorrect assert in ttm_bo_unreserve_bulk() 2025-03-14 07:54:39 +01:00
Makefile drm/ttm: Provide a shmem backup implementation 2025-03-05 17:08:59 +01:00
ttm_agp_backend.c drm/ttm: Add a parameter to add extra pages into ttm_tt 2022-04-02 08:22:48 +05:30
ttm_backup.c drm/ttm: Provide a shmem backup implementation 2025-03-05 17:08:59 +01:00
ttm_bo.c drm/ttm: revert "Export ttm_bo_get_unless_zero()" 2025-05-26 15:26:17 +02:00
ttm_bo_internal.h drm/ttm: make ttm_bo_get internal 2025-05-26 15:34:00 +02:00
ttm_bo_util.c drm/ttm: revert "Export ttm_bo_get_unless_zero()" 2025-05-26 15:26:17 +02:00
ttm_bo_vm.c drm/ttm/xe: drop unused force_alloc flag 2025-04-24 06:56:35 +10:00
ttm_device.c drm/ttm: revert "Export ttm_bo_get_unless_zero()" 2025-05-26 15:26:17 +02:00
ttm_execbuf_util.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_module.c LoongArch: Add writecombine support for drm 2022-06-03 20:09:27 +08:00
ttm_module.h drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_pool.c drm/ttm: Fix build with CONFIG_DEBUG_FS=n 2025-06-04 08:23:21 +01:00
ttm_range_manager.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_resource.c drm/ttm/xe: drop unused force_alloc flag 2025-04-24 06:56:35 +10:00
ttm_sys_manager.c drm/ttm: add back a reference to the bdev to the res manager 2022-01-26 15:29:24 +01:00
ttm_tt.c drm/ttm: Add helpers for shrinking 2025-03-05 17:08:59 +01:00