mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
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/[email protected] Signed-off-by: Ricardo B. Marliere <[email protected]> Suggested-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
This commit is contained in:
committed by
Andrew Morton
parent
9814171852
commit
e374ae2be2
+1
-1
@@ -39,7 +39,7 @@ static LIST_HEAD(memory_tiers);
|
||||
static struct node_memory_type_map node_memory_types[MAX_NUMNODES];
|
||||
struct memory_dev_type *default_dram_type;
|
||||
|
||||
static struct bus_type memory_tier_subsys = {
|
||||
static const struct bus_type memory_tier_subsys = {
|
||||
.name = "memory_tiering",
|
||||
.dev_name = "memory_tier",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user