stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again
@ 2017-04-21 12:45 Arnd Bergmann
  2017-04-21 12:53 ` Boris Brezillon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Arnd Bergmann @ 2017-04-21 12:45 UTC (permalink / raw)
  To: stable; +Cc: gregkh, Arnd Bergmann, Boris Brezillon, Mike Turquette,
	linux-kernel

We had an incorrect backport of
4591243102fa ("clk: at91: usb: propagate rate modification to the parent clk")
that was fixed incorrectly in linux-3.18.y by
76723e7ed589 ("clk: at91: usb: fix determine_rate prototype")

as shown by this warning:

drivers/clk/at91/clk-usb.c:155:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
drivers/clk/at91/clk-usb.c:193:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]

This should fix it properly.

Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
This should be applied to 3.18.y directly
---
 drivers/clk/at91/clk-usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/at91/clk-usb.c b/drivers/clk/at91/clk-usb.c
index 0283a5713d6c..930a424cc4a0 100644
--- a/drivers/clk/at91/clk-usb.c
+++ b/drivers/clk/at91/clk-usb.c
@@ -59,7 +59,7 @@ static unsigned long at91sam9x5_clk_usb_recalc_rate(struct clk_hw *hw,
 static long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw,
 					      unsigned long rate,
 					      unsigned long *best_parent_rate,
-					      struct clk_hw **best_parent_hw)
+					      struct clk **best_parent_hw)
 {
 	struct clk *parent = NULL;
 	long best_rate = -EINVAL;
@@ -91,7 +91,7 @@ static long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw,
 				best_rate = tmp_rate;
 				best_diff = tmp_diff;
 				*best_parent_rate = tmp_parent_rate;
-				*best_parent_hw = __clk_get_hw(parent);
+				*best_parent_hw = parent;
 			}
 
 			if (!best_diff || tmp_rate < rate)
-- 
2.9.0

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

* Re: [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again
  2017-04-21 12:45 [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again Arnd Bergmann
@ 2017-04-21 12:53 ` Boris Brezillon
  2017-04-27  9:56 ` Greg KH
  2017-04-27 10:04 ` Patch "clk: at91: usb: fix determine_rate prototype again" has been added to the 3.18-stable tree gregkh
  2 siblings, 0 replies; 4+ messages in thread
From: Boris Brezillon @ 2017-04-21 12:53 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: stable, gregkh, Mike Turquette, linux-kernel

On Fri, 21 Apr 2017 14:45:23 +0200
Arnd Bergmann <arnd@arndb.de> wrote:

> We had an incorrect backport of
> 4591243102fa ("clk: at91: usb: propagate rate modification to the parent clk")
> that was fixed incorrectly in linux-3.18.y by
> 76723e7ed589 ("clk: at91: usb: fix determine_rate prototype")
> 
> as shown by this warning:
> 
> drivers/clk/at91/clk-usb.c:155:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
> drivers/clk/at91/clk-usb.c:193:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
> 
> This should fix it properly.
> 
> Cc: Boris Brezillon <boris.brezillon@free-electrons.com>

Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> This should be applied to 3.18.y directly
> ---
>  drivers/clk/at91/clk-usb.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/clk/at91/clk-usb.c b/drivers/clk/at91/clk-usb.c
> index 0283a5713d6c..930a424cc4a0 100644
> --- a/drivers/clk/at91/clk-usb.c
> +++ b/drivers/clk/at91/clk-usb.c
> @@ -59,7 +59,7 @@ static unsigned long at91sam9x5_clk_usb_recalc_rate(struct clk_hw *hw,
>  static long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw,
>  					      unsigned long rate,
>  					      unsigned long *best_parent_rate,
> -					      struct clk_hw **best_parent_hw)
> +					      struct clk **best_parent_hw)
>  {
>  	struct clk *parent = NULL;
>  	long best_rate = -EINVAL;
> @@ -91,7 +91,7 @@ static long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw,
>  				best_rate = tmp_rate;
>  				best_diff = tmp_diff;
>  				*best_parent_rate = tmp_parent_rate;
> -				*best_parent_hw = __clk_get_hw(parent);
> +				*best_parent_hw = parent;
>  			}
>  
>  			if (!best_diff || tmp_rate < rate)

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

* Re: [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again
  2017-04-21 12:45 [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again Arnd Bergmann
  2017-04-21 12:53 ` Boris Brezillon
@ 2017-04-27  9:56 ` Greg KH
  2017-04-27 10:04 ` Patch "clk: at91: usb: fix determine_rate prototype again" has been added to the 3.18-stable tree gregkh
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2017-04-27  9:56 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: stable, Boris Brezillon, Mike Turquette, linux-kernel

On Fri, Apr 21, 2017 at 02:45:23PM +0200, Arnd Bergmann wrote:
> We had an incorrect backport of
> 4591243102fa ("clk: at91: usb: propagate rate modification to the parent clk")
> that was fixed incorrectly in linux-3.18.y by
> 76723e7ed589 ("clk: at91: usb: fix determine_rate prototype")
> 
> as shown by this warning:
> 
> drivers/clk/at91/clk-usb.c:155:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
> drivers/clk/at91/clk-usb.c:193:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
> 
> This should fix it properly.
> 
> Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> This should be applied to 3.18.y directly

Thanks for this, now applied.

greg k-h

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

* Patch "clk: at91: usb: fix determine_rate prototype again" has been added to the 3.18-stable tree
  2017-04-21 12:45 [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again Arnd Bergmann
  2017-04-21 12:53 ` Boris Brezillon
  2017-04-27  9:56 ` Greg KH
@ 2017-04-27 10:04 ` gregkh
  2 siblings, 0 replies; 4+ messages in thread
From: gregkh @ 2017-04-27 10:04 UTC (permalink / raw)
  To: arnd, boris.brezillon, gregkh, mturquette; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    clk: at91: usb: fix determine_rate prototype again

to the 3.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     clk-at91-usb-fix-determine_rate-prototype-again.patch
and it can be found in the queue-3.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From arnd@arndb.de  Thu Apr 27 11:55:29 2017
From: Arnd Bergmann <arnd@arndb.de>
Date: Fri, 21 Apr 2017 14:45:23 +0200
Subject: clk: at91: usb: fix determine_rate prototype again
To: stable@vger.kernel.org
Cc: gregkh@linuxfoundation.org, Arnd Bergmann <arnd@arndb.de>, Boris Brezillon <boris.brezillon@free-electrons.com>, Mike Turquette <mturquette@linaro.org>, linux-kernel@vger.kernel.org
Message-ID: <20170421124528.2644028-1-arnd@arndb.de>

From: Arnd Bergmann <arnd@arndb.de>

We had an incorrect backport of
4591243102fa ("clk: at91: usb: propagate rate modification to the parent clk")
that was fixed incorrectly in linux-3.18.y by
76723e7ed589 ("clk: at91: usb: fix determine_rate prototype")

as shown by this warning:

drivers/clk/at91/clk-usb.c:155:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
drivers/clk/at91/clk-usb.c:193:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]

This should fix it properly.

Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/clk/at91/clk-usb.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/clk/at91/clk-usb.c
+++ b/drivers/clk/at91/clk-usb.c
@@ -59,7 +59,7 @@ static unsigned long at91sam9x5_clk_usb_
 static long at91sam9x5_clk_usb_determine_rate(struct clk_hw *hw,
 					      unsigned long rate,
 					      unsigned long *best_parent_rate,
-					      struct clk_hw **best_parent_hw)
+					      struct clk **best_parent_hw)
 {
 	struct clk *parent = NULL;
 	long best_rate = -EINVAL;
@@ -91,7 +91,7 @@ static long at91sam9x5_clk_usb_determine
 				best_rate = tmp_rate;
 				best_diff = tmp_diff;
 				*best_parent_rate = tmp_parent_rate;
-				*best_parent_hw = __clk_get_hw(parent);
+				*best_parent_hw = parent;
 			}
 
 			if (!best_diff || tmp_rate < rate)


Patches currently in stable-queue which might be from arnd@arndb.de are

queue-3.18/acpi-power-avoid-maybe-uninitialized-warning.patch
queue-3.18/gadgetfs-fix-uninitialized-variable-in-error-handling.patch
queue-3.18/clk-at91-usb-fix-determine_rate-prototype-again.patch
queue-3.18/arm-psci-fix-header-file.patch
queue-3.18/dm-bufio-hide-bogus-warning.patch

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

end of thread, other threads:[~2017-04-27 10:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 12:45 [stable 3.18 PATCH] clk: at91: usb: fix determine_rate prototype again Arnd Bergmann
2017-04-21 12:53 ` Boris Brezillon
2017-04-27  9:56 ` Greg KH
2017-04-27 10:04 ` Patch "clk: at91: usb: fix determine_rate prototype again" has been added to the 3.18-stable tree gregkh

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