[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AM7PR07MB670712A8DB95BC63C0569262FAE10@AM7PR07MB6707.eurprd07.prod.outlook.com>
Date: Wed, 18 Nov 2020 11:41:04 +0000
From: "Wiebe, Wladislav (Nokia - DE/Ulm)" <wladislav.wiebe@...ia.com>
To: "mturquette@...libre.com" <mturquette@...libre.com>,
"sboyd@...nel.org" <sboyd@...nel.org>,
"linux-clk@...r.kernel.org" <linux-clk@...r.kernel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Wiebe, Wladislav (Nokia - DE/Ulm)" <wladislav.wiebe@...ia.com>
Subject: [PATCH v2] clk: move orphan_list back to DEBUG_FS section
commit 903c6bd937ca ("clk: Evict unregistered clks from parent caches")
in v4.19.142 moves orphan_list to global section which is not used when
CONFIG_DEBUG_FS is disabled.
Fixes:
drivers/clk/clk.c:49:27: error: 'orphan_list' defined but not used
[-Werror=unused-variable]
static struct hlist_head *orphan_list[] = {
^~~~~~~~~~~
Fixes: 903c6bd937ca ("clk: Evict unregistered clks from parent caches")
Cc: stable@...r.kernel.org
Signed-off-by: Wladislav Wiebe <wladislav.wiebe@...ia.com>
---
drivers/clk/clk.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index c5cf9e77fe86..925dd84293f4 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -46,11 +46,6 @@ static struct hlist_head *all_lists[] = {
NULL,
};
-static struct hlist_head *orphan_list[] = {
- &clk_orphan_list,
- NULL,
-};
-
/*** private data structures ***/
struct clk_core {
@@ -2629,6 +2624,11 @@ static int inited = 0;
static DEFINE_MUTEX(clk_debug_lock);
static HLIST_HEAD(clk_debug_list);
+static struct hlist_head *orphan_list[] = {
+ &clk_orphan_list,
+ NULL,
+};
+
static void clk_summary_show_one(struct seq_file *s, struct clk_core *c,
int level)
{
--
2.29.2
Powered by blists - more mailing lists