linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: sunxi: fix build warning
@ 2017-10-19 19:09 Corentin Labbe
  2017-10-20  7:29 ` Maxime Ripard
  0 siblings, 1 reply; 5+ messages in thread
From: Corentin Labbe @ 2017-10-19 19:09 UTC (permalink / raw)
  To: linux-arm-kernel

This patch fix the following build warning:
drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
 drivers/clk/sunxi/clk-factors.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/clk/sunxi/clk-factors.c b/drivers/clk/sunxi/clk-factors.c
index dfe5e3e32d28..856fef65433b 100644
--- a/drivers/clk/sunxi/clk-factors.c
+++ b/drivers/clk/sunxi/clk-factors.c
@@ -276,13 +276,11 @@ void sunxi_factors_unregister(struct device_node *node, struct clk *clk)
 {
 	struct clk_hw *hw = __clk_get_hw(clk);
 	struct clk_factors *factors;
-	const char *name;
 
 	if (!hw)
 		return;
 
 	factors = to_clk_factors(hw);
-	name = clk_hw_get_name(hw);
 
 	of_clk_del_provider(node);
 	/* TODO: The composite clock stuff will leak a bit here. */
-- 
2.13.6

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

* [PATCH] clk: sunxi: fix build warning
  2017-10-19 19:09 [PATCH] clk: sunxi: fix build warning Corentin Labbe
@ 2017-10-20  7:29 ` Maxime Ripard
  2017-10-24  8:36   ` Stephen Boyd
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2017-10-20  7:29 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Stephen, Mike,

On Thu, Oct 19, 2017 at 09:09:48PM +0200, Corentin Labbe wrote:
> This patch fix the following build warning:
> drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]
> 
> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>

Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Can you apply that patch directly? This is the only fix that we're
supposed to have for 4.14.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171020/cb7c8431/attachment.sig>

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

* [PATCH] clk: sunxi: fix build warning
  2017-10-20  7:29 ` Maxime Ripard
@ 2017-10-24  8:36   ` Stephen Boyd
  2017-10-24 10:07     ` Corentin Labbe
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2017-10-24  8:36 UTC (permalink / raw)
  To: linux-arm-kernel

On 10/20, Maxime Ripard wrote:
> Hi Stephen, Mike,
> 
> On Thu, Oct 19, 2017 at 09:09:48PM +0200, Corentin Labbe wrote:
> > This patch fix the following build warning:
> > drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]
> > 
> > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
> 
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> 
> Can you apply that patch directly? This is the only fix that we're
> supposed to have for 4.14.
> 

Fixes tag? And this is a new warning from the v4.14 merge window?
I suppose it only removes code so that's a plus side for merging
into fixes.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

* [PATCH] clk: sunxi: fix build warning
  2017-10-24  8:36   ` Stephen Boyd
@ 2017-10-24 10:07     ` Corentin Labbe
  2017-10-24 13:54       ` Stephen Boyd
  0 siblings, 1 reply; 5+ messages in thread
From: Corentin Labbe @ 2017-10-24 10:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Oct 24, 2017 at 01:36:28AM -0700, Stephen Boyd wrote:
> On 10/20, Maxime Ripard wrote:
> > Hi Stephen, Mike,
> > 
> > On Thu, Oct 19, 2017 at 09:09:48PM +0200, Corentin Labbe wrote:
> > > This patch fix the following build warning:
> > > drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]
> > > 
> > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
> > 
> > Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > 
> > Can you apply that patch directly? This is the only fix that we're
> > supposed to have for 4.14.
> > 
> 
> Fixes tag? And this is a new warning from the v4.14 merge window?
> I suppose it only removes code so that's a plus side for merging
> into fixes.
> 

Will do it.

Thanks
Regards
Corentin Labbe

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

* [PATCH] clk: sunxi: fix build warning
  2017-10-24 10:07     ` Corentin Labbe
@ 2017-10-24 13:54       ` Stephen Boyd
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2017-10-24 13:54 UTC (permalink / raw)
  To: linux-arm-kernel

On 10/24, Corentin Labbe wrote:
> On Tue, Oct 24, 2017 at 01:36:28AM -0700, Stephen Boyd wrote:
> > On 10/20, Maxime Ripard wrote:
> > > Hi Stephen, Mike,
> > > 
> > > On Thu, Oct 19, 2017 at 09:09:48PM +0200, Corentin Labbe wrote:
> > > > This patch fix the following build warning:
> > > > drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]
> > > > 
> > > > Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
> > > 
> > > Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > > 
> > > Can you apply that patch directly? This is the only fix that we're
> > > supposed to have for 4.14.
> > > 
> > 
> > Fixes tag? And this is a new warning from the v4.14 merge window?
> > I suppose it only removes code so that's a plus side for merging
> > into fixes.
> > 
> 
> Will do it.

Does this mean you'll resend? Just telling me commit id would be
sufficient.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

end of thread, other threads:[~2017-10-24 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-19 19:09 [PATCH] clk: sunxi: fix build warning Corentin Labbe
2017-10-20  7:29 ` Maxime Ripard
2017-10-24  8:36   ` Stephen Boyd
2017-10-24 10:07     ` Corentin Labbe
2017-10-24 13:54       ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).