diff options
author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-02-04 10:56:44 -0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-22 10:24:54 -0800 |
commit | e374ae2be2f7cb4aad46e17e3fa5da7bbb0d2a09 (patch) | |
tree | a528ae0b7c7e36ecd60632c78e19c86de1f1626b /mm/zswap.c | |
parent | 98141718528526ef080a9bb78a40f79aca0774a7 (diff) |
memory tier: make memory_tier_subsys const
Now that the driver core can properly handle constant struct bus_type,
move the memory_tier_subsys variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Link: https://lkml.kernel.org/r/20240204-bus_cleanup-mm-v1-1-00f49286f164@marliere.net
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/zswap.c')
0 files changed, 0 insertions, 0 deletions