fbdev: Constify struct sbus_mmap_map
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 13 Oct 2024 11:48:01 +0000 (13:48 +0200)
committerHelge Deller <deller@gmx.de>
Tue, 15 Oct 2024 08:07:32 +0000 (10:07 +0200)
commit161e95b899a624b877c13a83e4cc720aa56514b4
tree1067014569bf4b43a7a46c774d58b3c29dc102ba
parent57e755d333d1465c1cbf31d28245d429e1015beb
fbdev: Constify struct sbus_mmap_map

'struct sbus_mmap_map' are not modified in these drivers.

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

Update sbusfb_mmap_helper() accordingly.

On a x86_64, with allmodconfig, as an example:
Before:
======
   text    data     bss     dec     hex filename
   2452     536      16    3004     bbc drivers/video/fbdev/bw2.o

After:
=====
   text    data     bss     dec     hex filename
   2500     483      16    2999     bb7 drivers/video/fbdev/bw2.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/bw2.c
drivers/video/fbdev/cg14.c
drivers/video/fbdev/cg3.c
drivers/video/fbdev/cg6.c
drivers/video/fbdev/ffb.c
drivers/video/fbdev/leo.c
drivers/video/fbdev/p9100.c
drivers/video/fbdev/sbuslib.c
drivers/video/fbdev/sbuslib.h
drivers/video/fbdev/tcx.c