aboutsummaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2024-07-08 23:32:42 +0900
committerAndrew Morton <[email protected]>2024-07-12 16:39:52 -0700
commitfbc8846cd9c258e3844d22afd4d1ae7240077aab (patch)
treefb10070505480e6fe8d2efe9f2d7b7f6882e15df /scripts/rustdoc_test_builder.rs
parent0f3819e8c483771a59cf9d3190cd68a7a990083c (diff)
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/[email protected] Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Ryusuke Konishi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions