Skip to contentSkip to conversation

ttm/bo: make ttm_swap_ops static

PATCH New Ben Dooks 1 participant 1 message Jan 8

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 ttm/bo: make ttm_swap_ops static

The ttm_swap_ops is not exported from this file, so make it static to avoid the following sparse warning:

drivers/gpu/drm/ttm/ttm_bo.c:1202:31: warning: symbol 'ttm_swap_ops' was not declared. Should it be static?

Fixes 10efe34dae798c652053d43 ("drm/ttm: Use the LRU walker helper for swapping")
---
 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 bd27607f8076..6b1c80be1beb 100644
@@ -1199,7 +1199,7 @@ ttm_bo_swapout_cb(struct ttm_lru_walk *walk, struct ttm_buffer_object *bo)
 	return ret;
 }
 
-const struct ttm_lru_walk_ops ttm_swap_ops = {
+static const struct ttm_lru_walk_ops ttm_swap_ops = {
 	.process_bo = ttm_bo_swapout_cb,
 };
 
Signature · 1 line
2.37.2.352.g3c44437643