All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/ttm: make global mutex and use count static
@ 2021-04-09 11:07 Christian König
  2021-04-09 12:05 ` Daniel Vetter
  0 siblings, 1 reply; 2+ messages in thread
From: Christian König @ 2021-04-09 11:07 UTC (permalink / raw)
  To: dri-devel; +Cc: bernard

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>
---
 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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/ttm: make global mutex and use count static
  2021-04-09 11:07 [PATCH] drm/ttm: make global mutex and use count static Christian König
@ 2021-04-09 12:05 ` Daniel Vetter
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2021-04-09 12:05 UTC (permalink / raw)
  To: Christian König; +Cc: bernard, dri-devel

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@amd.com>
> Suggested-by: Bernard <bernard@vivo.com>

Acked-by: Daniel Vetter <daniel.vetter@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@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-09 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-09 11:07 [PATCH] drm/ttm: make global mutex and use count static Christian König
2021-04-09 12:05 ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.