diff options
author | Jani Nikula <jani.nikula@intel.com> | 2024-01-17 15:20:40 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2024-01-19 15:34:27 +0300 |
commit | 2fe36db5fd24c11071acca5d2994a647b3774347 (patch) | |
tree | d226a943650dced2046a9dd7888cef4f201cfcb0 /drivers/gpu/drm/xe/xe_bo.c | |
parent | 8ea8c918e7dbd5a61f9e98b8624437f1e295804c (diff) | |
download | linux-2fe36db5fd24c11071acca5d2994a647b3774347.tar.xz |
drm/xe: make xe_ttm_funcs const
Place the function pointers in rodata. Also drop the extra declaration
while at it.
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240117122044.1544174-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_bo.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c index 26fe73f58d72..686d716c5581 100644 --- a/drivers/gpu/drm/xe/xe_bo.c +++ b/drivers/gpu/drm/xe/xe_bo.c @@ -1041,7 +1041,7 @@ static void xe_ttm_bo_delete_mem_notify(struct ttm_buffer_object *ttm_bo) } } -struct ttm_device_funcs xe_ttm_funcs = { +const struct ttm_device_funcs xe_ttm_funcs = { .ttm_tt_create = xe_ttm_tt_create, .ttm_tt_populate = xe_ttm_tt_populate, .ttm_tt_unpopulate = xe_ttm_tt_unpopulate, |