mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 10:32:24 +00:00
Since commitee6d3dd4ed("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 definition to prevent modification at runtime. These structures were not constified in commite56397e8c4("mm/damon/sysfs: make kobj_type structures constant") as they didn't exist when that patch was written. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Andrew Morton <[email protected]>