* [PATCH] ttm/bo: make ttm_swap_ops static
@ 2026-01-08 10:29 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2026-01-08 10:29 UTC (permalink / raw)
To: dri-devel
Cc: linux-kernel, simona, airlied, tzimmermann, mripard,
maarten.lankhorst, Ben Dooks
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")
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index bd27607f8076..6b1c80be1beb 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -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,
};
--
2.37.2.352.g3c44437643
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-01-08 10:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-08 10:29 [PATCH] ttm/bo: make ttm_swap_ops static Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®