From: Christian König Date: Mon, 15 Feb 2021 15:17:26 +0000 (+0100) Subject: drm/ttm: make global mutex and use count static X-Git-Tag: accepted/tizen/unified/20230118.172025~6402^2~28^2~603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4e6823609442953f272dd25507b82b9a3f76ee5;p=platform%2Fkernel%2Flinux-rpi.git 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 Suggested-by: Bernard Acked-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20210409110730.2958-1-christian.koenig@amd.com --- diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c index 9b787b3..1f20241 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);