Skip to content

Commit 75061a6

Browse files
committed
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
1 parent fa6ffe6 commit 75061a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/clk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static HLIST_HEAD(clk_root_list);
3737
static HLIST_HEAD(clk_orphan_list);
3838
static LIST_HEAD(clk_notifier_list);
3939

40-
static struct hlist_head *all_lists[] = {
40+
static const struct hlist_head *all_lists[] = {
4141
&clk_root_list,
4242
&clk_orphan_list,
4343
NULL,
@@ -4095,7 +4095,7 @@ static void clk_core_evict_parent_cache_subtree(struct clk_core *root,
40954095
/* Remove this clk from all parent caches */
40964096
static void clk_core_evict_parent_cache(struct clk_core *core)
40974097
{
4098-
struct hlist_head **lists;
4098+
const struct hlist_head **lists;
40994099
struct clk_core *root;
41004100

41014101
lockdep_assert_held(&prepare_lock);

0 commit comments

Comments
 (0)