linux-stable/drivers/gpu/drm/ttm
Arnd Bergmann 846f151d03 drm/ttm: fix unused function warning
ttm_pool_type_count() is not used when debugfs is disabled:

drivers/gpu/drm/ttm/ttm_pool.c:243:21: error: unused function 'ttm_pool_type_count' [-Werror,-Wunused-function]
static unsigned int ttm_pool_type_count(struct ttm_pool_type *pt)

Move the definition into the #ifdef block.

Fixes: d099fc8f54 ("drm/ttm: new TT backend allocation pool v3")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Martin Peres <martin.peres@mupuf.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/405695/
Signed-off-by: Christian König <christian.koenig@amd.com>
2020-12-16 16:24:25 +01:00
..
Makefile drm/ttm: nuke old page allocator 2020-10-29 15:57:57 +01:00
ttm_agp_backend.c drm/ttm: nuke old page allocator 2020-10-29 15:57:57 +01:00
ttm_bo.c drm/ttm/ttm_bo: Fix one function header - demote lots of kernel-doc abuses 2020-11-17 20:10:54 +01:00
ttm_bo_util.c drm/ttm: Add vmap/vunmap to TTM and TTM GEM helpers 2020-11-09 09:17:36 +01:00
ttm_bo_vm.c drm/ttm: replace context flags with bools v2 2020-11-04 11:23:25 +01:00
ttm_execbuf_util.c drm/ttm/amdgpu: consolidate ttm reserve paths 2020-08-06 12:16:31 +10:00
ttm_memory.c drm/ttm: replace context flags with bools v2 2020-11-04 11:23:25 +01:00
ttm_module.c
ttm_pool.c drm/ttm: fix unused function warning 2020-12-16 16:24:25 +01:00
ttm_range_manager.c drm/ttm/ttm_range_manager: Demote non-conformant kernel-doc header 2020-11-17 20:13:26 +01:00
ttm_resource.c drm/ttm: replace context flags with bools v2 2020-11-04 11:23:25 +01:00
ttm_tt.c drm/ttm/ttm_tt: Demote kernel-doc header format abuses 2020-11-17 20:14:18 +01:00