diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-07-08 17:32:42 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-07-13 02:39:52 +0300 |
commit | fbc8846cd9c258e3844d22afd4d1ae7240077aab (patch) | |
tree | fb10070505480e6fe8d2efe9f2d7b7f6882e15df /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0f3819e8c483771a59cf9d3190cd68a7a990083c (diff) | |
download | linux-fbc8846cd9c258e3844d22afd4d1ae7240077aab.tar.xz |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions