]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/ttm: let struct ttm_device_funcs be placed in rodata
authorJani Nikula <jani.nikula@intel.com>
Thu, 9 Mar 2023 12:37:00 +0000 (14:37 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 17 May 2023 08:28:28 +0000 (11:28 +0300)
commit1ad797597a80ebe1c62b12403460d71e215f417b
tree0e4e5e1a4f3846ac611897a5be8f4c575f1f7a43
parent788557fb23702dbd21767a69894a53c1aa58bb60
drm/ttm: let struct ttm_device_funcs be placed in rodata

Make the struct ttm_device_funcs pointers const so the data can be placed in rodata.

Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230309123700.528641-1-jani.nikula@intel.com
drivers/gpu/drm/ttm/ttm_device.c
include/drm/ttm/ttm_device.h