diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-09-08 10:21:00 +0200 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-02-21 10:33:10 +0100 |
| commit | 4f527a0463fd6e796e6d1722b8c6b995bccfa4a5 (patch) | |
| tree | f917528c6cdbe3f051b5ab2f633327300f5945eb /tools/perf/scripts/python/parallel-perf.py | |
| parent | staging: media: imx: vdic: Drop unused prepare_vdi_in_buffers() (diff) | |
| download | linux-4f527a0463fd6e796e6d1722b8c6b995bccfa4a5.tar.gz linux-4f527a0463fd6e796e6d1722b8c6b995bccfa4a5.zip | |
media: dibx000_common: Constify struct i2c_algorithm
'struct i2c_algorithm' 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.
To do so, the prototype of i2c_adapter_init() has to be updated as well.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
17213 932 20 18165 46f5 drivers/media/dvb-frontends/dibx000_common.o
After:
=====
text data bss dec hex filename
17490 660 20 18170 46fa drivers/media/dvb-frontends/dibx000_common.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
