diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2026-01-20 10:35:08 -0500 |
|---|---|---|
| committer | David Teigland <teigland@redhat.com> | 2026-01-20 12:07:31 -0600 |
| commit | 596ce53d647ca7c8d6408a4148dc44ead39e8474 (patch) | |
| tree | ab0b800bf077fda9aded4dffb6ea1e192790d960 /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 6155b409761f50c7f3353739610bb37e02422116 (diff) | |
dlm: 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, as an example:
Before:
======
text data bss dec hex filename
29436 12952 384 42772 a714 fs/dlm/config.o
After:
=====
text data bss dec hex filename
30076 12312 384 42772 a714 fs/dlm/config.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
