diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-09-07 15:51:07 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-09-30 09:20:59 +0100 |
| commit | 4f3333a658a05f7f9dd88d3ba194d665a4f4b19a (patch) | |
| tree | a96b18944d40562677ee4dad2bb1dbc1ac1be571 /tools/perf/scripts/python/parallel-perf.py | |
| parent | 3ad9e6396834b66e2b77222e6bea9e5fb08699d6 (diff) | |
| download | linux-4f3333a658a05f7f9dd88d3ba194d665a4f4b19a.tar.gz linux-4f3333a658a05f7f9dd88d3ba194d665a4f4b19a.zip | |
iio: addac: ad74xxx: Constify struct iio_chan_spec​
'struct iio_chan_spec' are not modified in these drivers.
Constifying this structure moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
35749 5879 384 42012 a41c drivers/iio/addac/ad74115.o
32242 3297 384 35923 8c53 drivers/iio/addac/ad74413r.o
After:
=====
text data bss dec hex filename
39109 2519 384 42012 a41c drivers/iio/addac/ad74115.o
33842 1697 384 35923 8c53 drivers/iio/addac/ad74413r.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/da291278e78b983ea2e657a25769f7d82ea2a6d0.1725717045.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
