mirror of
https://github.com/torvalds/linux.git
synced 2026-10-29 21:06:02 +01:00
drm/ttm: make ttm_swap_ops static
ttm_swap_ops is not used outside ttm_bo.c and is not exported via EXPORT_SYMBOL(), so give it static linkage to keep it file-local and avoid polluting the global symbol namespace. Signed-off-by: Sean Chang <seanwascoding@gmail.com> Link: https://lore.kernel.org/r/20260818160914.108313-3-seanwascoding@gmail.com Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
59b68932fe
commit
ec99b095ae
|
|
@ -1449,7 +1449,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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user