[PATCH] drm/ttm: make global mutex and use count static

Daniel Vetter daniel at ffwll.ch
Fri Apr 9 12:05:40 UTC 2021


On Fri, Apr 09, 2021 at 01:07:30PM +0200, Christian König wrote:
> Only needed during device hot plug and remove and not exported.
> 
> Signed-off-by: Christian König <christian.koenig at amd.com>
> Suggested-by: Bernard <bernard at vivo.com>

Acked-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
>  drivers/gpu/drm/ttm/ttm_device.c | 4 ++--
>  1 file 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);
>  
> -- 
> 2.25.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list