]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fbdev: mmp: Constify struct mmp_overlay_ops
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 24 Jun 2024 19:59:42 +0000 (21:59 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 25 Jun 2024 12:40:01 +0000 (14:40 +0200)
commitb65bd7874bc7dc709645fd8acb53603b73ae950a
tree620e4c4a77e80b731376f7164fb7b932ab101e7e
parentc260bda655993bf72d3f9a6df9e9021c3c1cd1be
fbdev: mmp: Constify struct mmp_overlay_ops

'struct mmp_overlay_ops' is not modified in this driver.

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
  11798     555      16   12369    3051 drivers/video/fbdev/mmp/hw/mmp_ctrl.o

After:
=====
   text    data     bss     dec     hex filename
  11834     507      16   12357    3045 drivers/video/fbdev/mmp/hw/mmp_ctrl.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/mmp/hw/mmp_ctrl.c
include/video/mmp_disp.h