diff options
| author | Christophe JAILLET <[email protected]> | 2024-12-06 22:25:42 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2024-12-10 20:26:33 +0000 |
| commit | 93b216cb312dcaee19de19efab6025481e5df4ae (patch) | |
| tree | 8d35b7e1d0edf5cc0fc4fa1a24c536084b2f8f3c /net/switchdev/switchdev.c | |
| parent | auxdisplay: img-ascii-lcd: Remove an unused field in struct img_ascii_lcd_ctx (diff) | |
| download | kernel-93b216cb312dcaee19de19efab6025481e5df4ae.tar.gz kernel-93b216cb312dcaee19de19efab6025481e5df4ae.zip | |
auxdisplay: img-ascii-lcd: Constify struct img_ascii_lcd_config
'struct img_ascii_lcd_config' is not modified in this driver.
Constifying this structure moves some data to a read-only section, so
increase overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
6110 728 0 6838 1ab6 drivers/auxdisplay/img-ascii-lcd.o
After:
=====
text data bss dec hex filename
6198 632 0 6830 1aae drivers/auxdisplay/img-ascii-lcd.o
Signed-off-by: Christophe JAILLET <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
