diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2025-03-29 15:26:42 +0100 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-06-17 10:35:14 +0200 |
| commit | 065eb4d262473037ef6f7a409ed8da489bc64c4e (patch) | |
| tree | 8800a823ddc0132d12d09a68af7ce79b375bd03e /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | ad7fbb1624e8d1ef7e219cb76ce9d7edcabc68ee (diff) | |
| download | linux-065eb4d262473037ef6f7a409ed8da489bc64c4e.tar.gz linux-065eb4d262473037ef6f7a409ed8da489bc64c4e.zip | |
media: flexcop-i2c: 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.
On a x86_64, with allmodconfig, as an example:
Before:
======
text data bss dec hex filename
6645 216 16 6877 1add drivers/media/common/b2c2/flexcop-i2c.o
After:
=====
text data bss dec hex filename
6721 160 16 6897 1af1 drivers/media/common/b2c2/flexcop-i2c.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/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
