Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: move orphan_list back to DEBUG_FS section
@ 2020-11-18 10:23 Wiebe, Wladislav (Nokia - DE/Ulm)
  2020-11-18 10:46 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Wiebe, Wladislav (Nokia - DE/Ulm) @ 2020-11-18 10:23 UTC (permalink / raw)
  To: mturquette@baylibre.com, sboyd@kernel.org,
	linux-clk@vger.kernel.org
  Cc: stable@vger.kernel.org, Wiebe, Wladislav (Nokia - DE/Ulm)

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")

Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: move orphan_list back to DEBUG_FS section
  2020-11-18 10:23 [PATCH] clk: move orphan_list back to DEBUG_FS section Wiebe, Wladislav (Nokia - DE/Ulm)
@ 2020-11-18 10:46 ` Greg KH
  2020-11-18 11:12   ` Wiebe, Wladislav (Nokia - DE/Ulm)
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2020-11-18 10:46 UTC (permalink / raw)
  To: Wiebe, Wladislav (Nokia - DE/Ulm)
  Cc: mturquette@baylibre.com, sboyd@kernel.org,
	linux-clk@vger.kernel.org, stable@vger.kernel.org

On Wed, Nov 18, 2020 at 10:23:02AM +0000, Wiebe, Wladislav (Nokia - DE/Ulm) wrote:
> 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")
> 
> Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
> 
> ---
>  drivers/clk/clk.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] clk: move orphan_list back to DEBUG_FS section
  2020-11-18 10:46 ` Greg KH
@ 2020-11-18 11:12   ` Wiebe, Wladislav (Nokia - DE/Ulm)
  0 siblings, 0 replies; 3+ messages in thread
From: Wiebe, Wladislav (Nokia - DE/Ulm) @ 2020-11-18 11:12 UTC (permalink / raw)
  To: Greg KH
  Cc: mturquette@baylibre.com, sboyd@kernel.org,
	linux-clk@vger.kernel.org, stable@vger.kernel.org,
	Wiebe, Wladislav (Nokia - DE/Ulm)

> From: Greg KH <gregkh@linuxfoundation.org>
> Sent: Wednesday, November 18, 2020 11:47 AM
> 
> On Wed, Nov 18, 2020 at 10:23:02AM +0000, Wiebe, Wladislav (Nokia -
> DE/Ulm) wrote:
> > 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")
> >
> > Signed-off-by: Wladislav Wiebe <wladislav.wiebe@nokia.com>
> >
> > ---
> >  drivers/clk/clk.c | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> <formletter>
> 
> This is not the correct way to submit patches for inclusion in the stable kernel
> tree.  Please read:
>     https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> for how to do this properly.
> 
> </formletter>

Thanks for the hint Greg, I will resend.

- Wladislav

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-18 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-18 10:23 [PATCH] clk: move orphan_list back to DEBUG_FS section Wiebe, Wladislav (Nokia - DE/Ulm)
2020-11-18 10:46 ` Greg KH
2020-11-18 11:12   ` Wiebe, Wladislav (Nokia - DE/Ulm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox