diff options
author | 2024-10-13 13:48:01 +0200 | |
---|---|---|
committer | 2024-10-15 10:07:32 +0200 | |
commit | 161e95b899a624b877c13a83e4cc720aa56514b4 (patch) | |
tree | 1067014569bf4b43a7a46c774d58b3c29dc102ba /scripts/lib/kdoc/kdoc_files.py | |
parent | fbdev: nvidiafb: fix inconsistent indentation warning (diff) | |
download | wireguard-linux-161e95b899a624b877c13a83e4cc720aa56514b4.tar.xz wireguard-linux-161e95b899a624b877c13a83e4cc720aa56514b4.zip |
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions