]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
clk: fix build warning for orphan_list
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Sep 2021 08:31:20 +0000 (10:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 09:47:46 +0000 (11:47 +0200)
In the backport of commit bdcf1dc25324 ("clk: Evict unregistered clks
from parent caches") to the 4.19.y and 4.14.y stable trees, the
orphan_list structure was placed in the wrong location, causing loads of
build warnings on systems that do not define CONFIG_DEBUG_FS.

Fix this up by moving the structure to the correct place in the file.

Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/clk.c

index 3806fd8fef0b108e8ad0333eb7f5408a594e61ed..a9490c8e82a70961b77a7b47a0bc364c48d2c2c5 100644 (file)
@@ -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)
 {