diff options
author | Christian König <christian.koenig@amd.com> | 2021-02-15 16:17:26 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-04-09 15:26:27 +0200 |
commit | d4e6823609442953f272dd25507b82b9a3f76ee5 (patch) | |
tree | 3feef85087d193a03bebad763b38a5e81400502a | |
parent | e8b8b0df8694e39ea6bbbdb9e2fcfa78a61e2e42 (diff) | |
download | linux-d4e6823609442953f272dd25507b82b9a3f76ee5.tar.gz linux-d4e6823609442953f272dd25507b82b9a3f76ee5.tar.bz2 linux-d4e6823609442953f272dd25507b82b9a3f76ee5.zip |
drm/ttm: make global mutex and use count static
Only needed during device hot plug and remove and not exported.
Signed-off-by: Christian König <christian.koenig@amd.com>
Suggested-by: Bernard <bernard@vivo.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210409110730.2958-1-christian.koenig@amd.com
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c index 9b787b3caeb5..1f2024164d72 100644 --- a/drivers/gpu/drm/ttm/ttm_device.c +++ b/drivers/gpu/drm/ttm/ttm_device.c @@ -39,8 +39,8 @@ /** * ttm_global_mutex - protecting the global state */ -DEFINE_MUTEX(ttm_global_mutex); -unsigned ttm_glob_use_count; +static DEFINE_MUTEX(ttm_global_mutex); +static unsigned ttm_glob_use_count; struct ttm_global ttm_glob; EXPORT_SYMBOL(ttm_glob); |