Skip to contentSkip to conversation

drm/vmwgfx: make vmw_pt_sys_placement static

PATCH New Wambui Karuga 1 participant 1 message Feb 23, 2022

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

PATCH 1/1 drm/vmwgfx: make vmw_pt_sys_placement static

Converts the variable vmw_pt_sys_placement to static to
fix the following Sparse warning:
warning: symbol 'vmw_pt_sys_placement' was not declared. Should it be static?

---
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +1 -1
index b84ecc6d6611..21057ff0d340 100644
@@ -120,7 +120,7 @@ struct ttm_placement vmw_sys_placement = {
 	.busy_placement = &sys_placement_flags
 };
 
-struct ttm_placement vmw_pt_sys_placement = {
+static struct ttm_placement vmw_pt_sys_placement = {
 	.num_placement = 1,
 	.placement = &vmw_sys_placement_flags,
 	.num_busy_placement = 1,
Signature · 1 line
2.32.0