diff options
author | Stephen Boyd <sboyd@kernel.org> | 2022-02-17 14:05:53 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-02-25 17:02:46 -0800 |
commit | 75061a6ff49ba3482c6319ded0c26e6a526b0967 (patch) | |
tree | 0a80b01e12dbe5f12f03f82218d63962a814f298 /drivers/clk/clk.c | |
parent | fa6ffe65cce5e596a411f6a878f9ad6588f3b8a7 (diff) |
clk: Mark 'all_lists' as const
This list array doesn't change at runtime. Mark it const to move to RO
memory.
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220217220554.2711696-2-sboyd@kernel.org
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 8de6a22498e7..16384e9437f5 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -37,7 +37,7 @@ static HLIST_HEAD(clk_root_list); static HLIST_HEAD(clk_orphan_list); static LIST_HEAD(clk_notifier_list); -static struct hlist_head *all_lists[] = { +static const struct hlist_head *all_lists[] = { &clk_root_list, &clk_orphan_list, NULL, @@ -4095,7 +4095,7 @@ static void clk_core_evict_parent_cache_subtree(struct clk_core *root, /* Remove this clk from all parent caches */ static void clk_core_evict_parent_cache(struct clk_core *core) { - struct hlist_head **lists; + const struct hlist_head **lists; struct clk_core *root; lockdep_assert_held(&prepare_lock); |