diff options
| author | Sean Chang <seanwascoding@gmail.com> | 2026-08-19 00:09:14 +0800 |
|---|---|---|
| committer | Christian König <christian.koenig@amd.com> | 2026-08-24 16:58:08 +0200 |
| commit | ec99b095aebecf20b9c8ace885d582cd01aae161 (patch) | |
| tree | cc763ebaa0c3314a54256151760877c2ff1bba22 /drivers/gpu | |
| parent | 59b68932fea75846a36b248014eec9f6daa93d91 (diff) | |
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>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 943297b49dc5..1b9477381a1d 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -1449,7 +1449,7 @@ out: 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, }; |
