summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mm/write_to_hugetlbfs.c
diff options
context:
space:
mode:
authorHuang Xiaojia <huangxiaojia2@huawei.com>2024-08-26 18:04:18 +0300
committerMike Marshall <hubcap@omnibond.com>2024-09-06 17:18:17 +0300
commit96319dacaf15f666bcba7275953d780e23fe9e75 (patch)
tree9a35154698ec5b330587d98c87cee9e3e5fee429 /tools/testing/selftests/mm/write_to_hugetlbfs.c
parent5be63fc19fcaa4c236b307420483578a56986a37 (diff)
downloadlinux-96319dacaf15f666bcba7275953d780e23fe9e75.tar.xz
orangefs: Constify struct kobj_type
'struct kobj_type' is not modified. It is only used in kobject_init() which takes a 'const struct kobj_type *ktype' parameter. Constifying this structure moves some data to a read-only section, so increase over all security. On a x86_64, compiled with defconfig: Before: ====== text data bss dec hex filename 7036 2136 56 9228 240c fs/orangefs/orangefs-sysfs.o After: ====== text data bss dec hex filename 7484 1880 56 9420 24cc fs/orangefs/orangefs-sysfs.o Signed-off-by: Huang Xiaojia <huangxiaojia2@huawei.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'tools/testing/selftests/mm/write_to_hugetlbfs.c')
0 files changed, 0 insertions, 0 deletions