diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2025-12-29 11:26:07 +0100 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-29 08:19:15 -0700 |
| commit | 9e371032cbf0c8fdc757df5510b55e824668b938 (patch) | |
| tree | bedd69e2eb405304bd28de3ff281769fb97cec63 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | e1418af7660f67abc7f6f0cf6867f3989aa45e9a (diff) | |
null_blk: 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
100263 37808 2752 140823 22617 drivers/block/null_blk/main.o
After:
=====
text data bss dec hex filename
100423 37648 2752 140823 22617 drivers/block/null_blk/main.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
