]> Git Repo - linux.git/commit
mm/damon/sysfs: make kobj_type structures constant
authorThomas Weißschuh <[email protected]>
Tue, 7 Feb 2023 19:21:15 +0000 (19:21 +0000)
committerAndrew Morton <[email protected]>
Fri, 10 Feb 2023 00:51:45 +0000 (16:51 -0800)
commite56397e8c40da82c78dccb6f48bfa21e88ccb1e4
tree0441eb4933c6348c0822466e45b99e42577d0b2e
parent2c2241081f7dec878331fdc3a3f2361e99556bca
mm/damon/sysfs: make kobj_type structures constant

Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.") the
driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definitions to prevent
modification at runtime.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/damon/sysfs-common.c
mm/damon/sysfs-common.h
mm/damon/sysfs-schemes.c
mm/damon/sysfs.c
This page took 0.05404 seconds and 4 git commands to generate.