drm/ttm/ttm_bo: make ttm_bo_glob_use_count static
Subsystems (4)
PATCH 1/1 drm/ttm/ttm_bo: make ttm_bo_glob_use_count static
Fix the following sparse warning:
drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +1 -1
@@ -50,7 +50,7 @@* ttm_global_mutex - protecting the global BO state */ DEFINE_MUTEX (ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static unsigned ttm_bo_glob_use_count;struct ttm_bo_global ttm_bo_glob;EXPORT_SYMBOL (ttm_bo_glob);
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Am 23.02.21 um 09:54 schrieb Jiapeng Chong:
Quoted 4 lines
Fix the following sparse warning:
drivers/gpu/drm/ttm/ttm_bo.c:53:10: warning: symbol 'ttm_bo_glob_use_count' was not declared. Should it be static?
IIRC we already have a patch for this on the mailing list and the mutex can be static as well.
Christian.
Quoted 12 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/ttm/ttm_bo.c +0
-0
drivers/gpu/drm/ttm/ttm_bo.c line 56
Quoted 8 lines
drivers/gpu/drm/ttm/ttm_bo.c +1
-1@@ -50,7 +50,7 @@* ttm_global_mutex - protecting the global BO state */ DEFINE_MUTEX (ttm_global_mutex); -unsigned ttm_bo_glob_use_count; +static unsigned ttm_bo_glob_use_count;struct ttm_bo_global ttm_bo_glob;EXPORT_SYMBOL (ttm_bo_glob);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel