* [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new()
@ 2023-09-29 6:13 Uwe Kleine-König
2023-09-29 9:02 ` Neil Armstrong
2023-09-29 11:06 ` Rafael J. Wysocki
0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2023-09-29 6:13 UTC (permalink / raw)
To: Rafael J . Wysocki
Cc: kernel, Daniel Lezcano, Guillaume La Roque, Amit Kucheria,
Zhang Rui, linux-pm, linux-amlogic, kernel test robot
Commit 88af8b66ffed ("thermal: amlogic: Convert to platform remove
callback returning void") converted amlogic_thermal_disable() to return
no value but missed that amlogic_thermal_suspend() makes use of the int
returned by this function. As amlogic_thermal_disable() returned zero
unconditionally before, add a return 0 to get the same behaviour as
before the offending commit.
Fixes: 88af8b66ffed ("thermal: amlogic: Convert to platform remove callback returning void")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202309291214.Hjn3gJ94-lkp@intel.com/
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
Hello,
sorry for not catching that before sending. I don't understand yet what
was wrong with my testing; I would have bet the series was tested with
an ARCH=arm64 allmodconfig build. :-\
If you prefer it, feel free to squash this patch into the offending
commit.
Best regards, sorry and thanks,
Uwe
drivers/thermal/amlogic_thermal.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
index 1426f1eb4ac6..562f63b7bf27 100644
--- a/drivers/thermal/amlogic_thermal.c
+++ b/drivers/thermal/amlogic_thermal.c
@@ -300,7 +300,9 @@ static int __maybe_unused amlogic_thermal_suspend(struct device *dev)
{
struct amlogic_thermal *data = dev_get_drvdata(dev);
- return amlogic_thermal_disable(data);
+ amlogic_thermal_disable(data);
+
+ return 0;
}
static int __maybe_unused amlogic_thermal_resume(struct device *dev)
--
2.40.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new()
2023-09-29 6:13 [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new() Uwe Kleine-König
@ 2023-09-29 9:02 ` Neil Armstrong
2023-09-29 11:06 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Neil Armstrong @ 2023-09-29 9:02 UTC (permalink / raw)
To: Uwe Kleine-König, Rafael J . Wysocki
Cc: kernel, Daniel Lezcano, Guillaume La Roque, Amit Kucheria,
Zhang Rui, linux-pm, linux-amlogic, kernel test robot
Le 29/09/2023 à 08:13, Uwe Kleine-König a écrit :
> Commit 88af8b66ffed ("thermal: amlogic: Convert to platform remove
> callback returning void") converted amlogic_thermal_disable() to return
> no value but missed that amlogic_thermal_suspend() makes use of the int
> returned by this function. As amlogic_thermal_disable() returned zero
> unconditionally before, add a return 0 to get the same behaviour as
> before the offending commit.
>
> Fixes: 88af8b66ffed ("thermal: amlogic: Convert to platform remove callback returning void")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202309291214.Hjn3gJ94-lkp@intel.com/
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hello,
>
> sorry for not catching that before sending. I don't understand yet what
> was wrong with my testing; I would have bet the series was tested with
> an ARCH=arm64 allmodconfig build. :-\
>
> If you prefer it, feel free to squash this patch into the offending
> commit.
>
> Best regards, sorry and thanks,
> Uwe
>
> drivers/thermal/amlogic_thermal.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c
> index 1426f1eb4ac6..562f63b7bf27 100644
> --- a/drivers/thermal/amlogic_thermal.c
> +++ b/drivers/thermal/amlogic_thermal.c
> @@ -300,7 +300,9 @@ static int __maybe_unused amlogic_thermal_suspend(struct device *dev)
> {
> struct amlogic_thermal *data = dev_get_drvdata(dev);
>
> - return amlogic_thermal_disable(data);
> + amlogic_thermal_disable(data);
> +
> + return 0;
> }
>
> static int __maybe_unused amlogic_thermal_resume(struct device *dev)
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new()
2023-09-29 6:13 [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new() Uwe Kleine-König
2023-09-29 9:02 ` Neil Armstrong
@ 2023-09-29 11:06 ` Rafael J. Wysocki
1 sibling, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2023-09-29 11:06 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Rafael J . Wysocki, kernel, Daniel Lezcano, Guillaume La Roque,
Amit Kucheria, Zhang Rui, linux-pm, linux-amlogic,
kernel test robot
On Fri, Sep 29, 2023 at 8:13 AM Uwe Kleine-König
<u.kleine-koenig@pengutronix.de> wrote:
>
> Commit 88af8b66ffed ("thermal: amlogic: Convert to platform remove
> callback returning void") converted amlogic_thermal_disable() to return
> no value but missed that amlogic_thermal_suspend() makes use of the int
> returned by this function. As amlogic_thermal_disable() returned zero
> unconditionally before, add a return 0 to get the same behaviour as
> before the offending commit.
>
> Fixes: 88af8b66ffed ("thermal: amlogic: Convert to platform remove callback returning void")
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202309291214.Hjn3gJ94-lkp@intel.com/
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hello,
>
> sorry for not catching that before sending. I don't understand yet what
> was wrong with my testing; I would have bet the series was tested with
> an ARCH=arm64 allmodconfig build. :-\
>
> If you prefer it, feel free to squash this patch into the offending
> commit.
Instead, I've dropped the changes in amlogic_thermal_disable() from that commit.
IMO they are not really related to it, because "remove" is not the
only caller of the above.
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-29 11:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-29 6:13 [PATCH] thermal: amlogic: Fix build failure after conversion to .remove_new() Uwe Kleine-König
2023-09-29 9:02 ` Neil Armstrong
2023-09-29 11:06 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox