Skip to content
Commit 846f151d authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Christian König
Browse files

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: d099fc8f ("drm/ttm: new TT backend allocation pool v3")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarMartin Peres <martin.peres@mupuf.org>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/405695/


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent ee46d16d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment