diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2025-12-29 12:27:43 +0100 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-12-31 17:59:26 +0000 |
| commit | d09ba52bfb25ea2ad50349b8de1986681afd6940 (patch) | |
| tree | 2673ac057b6871dffa1bbe0fe70e7c86a382fd4a /tools/perf/scripts/python/stackcollapse.py | |
| parent | d63d868b312478523670b76007dcc5eaedc3ee07 (diff) | |
| download | linux-d09ba52bfb25ea2ad50349b8de1986681afd6940.tar.gz linux-d09ba52bfb25ea2ad50349b8de1986681afd6940.zip | |
iio: core: Constify struct configfs_item_operations and configfs_group_operations
'struct configfs_item_operations' and 'configfs_group_operations' are not
modified in this driver.
Constifying these structures moves some data to a read-only section, so
increases overall security, especially when the structure holds some
function pointers.
On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
5037 1528 64 6629 19e5 drivers/iio/industrialio-sw-device.o
5509 1528 64 7101 1bbd drivers/iio/industrialio-sw-trigger.o
After:
=====
text data bss dec hex filename
5133 1432 64 6629 19e5 drivers/iio/industrialio-sw-device.o
5605 1432 64 7101 1bbd drivers/iio/industrialio-sw-trigger.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
