Skip to contentSkip to conversation

drm/ttm/ttm_bo: make ttm_bo_glob_use_count static

PATCH In review Jiapeng Chong 2 participants 2 messages Feb 23, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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?

---
 drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +1 -1
index b65f4b1..107dd13 100644
@@ -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
#1 lore raw

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
---
  drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -0
index b65f4b1..107dd13 100644

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