diff options
author | 2024-07-08 23:32:42 +0900 | |
---|---|---|
committer | 2024-07-12 16:39:52 -0700 | |
commit | fbc8846cd9c258e3844d22afd4d1ae7240077aab (patch) | |
tree | fb10070505480e6fe8d2efe9f2d7b7f6882e15df /scripts/generate_rust_analyzer.py | |
parent | nilfs2: avoid undefined behavior in nilfs_cnt32_ge macro (diff) | |
download | linux-rng-fbc8846cd9c258e3844d22afd4d1ae7240077aab.tar.xz linux-rng-fbc8846cd9c258e3844d22afd4d1ae7240077aab.zip |
nilfs2: Constify struct kobj_type
'struct kobj_type' is not modified in this driver. It is only used with
kobject_init_and_add() which takes a "const struct kobj_type *" parameter.
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
22403 4184 24 26611 67f3 fs/nilfs2/sysfs.o
After:
=====
text data bss dec hex filename
22723 3928 24 26675 6833 fs/nilfs2/sysfs.o
Link: https://lkml.kernel.org/r/20240708143242.3296-1-konishi.ryusuke@gmail.com
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions