From: Daniel Vetter <daniel@ffwll.ch>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>
Cc: bernard@vivo.com, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/ttm: make global mutex and use count static
Date: Fri, 9 Apr 2021 14:05:40 +0200 [thread overview]
Message-ID: <YHBDFDIktBBsSkAB@phenom.ffwll.local> (raw)
In-Reply-To: <20210409110730.2958-1-christian.koenig@amd.com>
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
prev parent reply other threads:[~2021-04-09 12:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YHBDFDIktBBsSkAB@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=bernard@vivo.com \
--cc=ckoenig.leichtzumerken@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.