drm/exynos: Constify struct exynos_drm_ipp_funcs
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 14 Jul 2024 07:37:20 +0000 (09:37 +0200)
committerInki Dae <inki.dae@samsung.com>
Fri, 6 Sep 2024 06:59:13 +0000 (15:59 +0900)
commitc50b7416fd4a0f97cffabccde3fb0fe84ced21fb
tree5da754f96ac179e9d28a17268271f308667902ce
parentfce4a2a95df29c48338f3dee18c9e9d7c3d07316
drm/exynos: Constify struct exynos_drm_ipp_funcs

'struct exynos_drm_ipp_funcs' are not modified in these drivers.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
  20446    1746      16   22208    56c0 drivers/gpu/drm/exynos/exynos_drm_fimc.o

After:
=====
   text    data     bss     dec     hex filename
  20446    1714      16   22176    56a0 drivers/gpu/drm/exynos/exynos_drm_fimc.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimc.c
drivers/gpu/drm/exynos/exynos_drm_gsc.c
drivers/gpu/drm/exynos/exynos_drm_scaler.c