thermal: rockchip: fix compile error
Subsystems (2)
PATCH 1/1 thermal: rockchip: fix compile error
Missing a include file caused compile error.
drivers/thermal/rockchip_thermal.c:
In function 'rockchip_thermal_suspend':drivers/thermal/rockchip_thermal.c:720:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]
pinctrl_pm_select_sleep_state(dev);
^drivers/thermal/rockchip_thermal.c:
In function 'rockchip_thermal_resume':drivers/thermal/rockchip_thermal.c:759:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration] ^pinctrl_pm_select_default_state(dev);
cc1: some warnings being treated as errors
to avoid glitches")
---
drivers/thermal/rockchip_thermal.c | 1 + 1 file changed, 1 insertion(+)
drivers/thermal/rockchip_thermal.c +1 -0
@@ -25,6 +25,7 @@#include <linux/platform_device.h> #include <linux/reset.h> #include <linux/thermal.h> +#include <linux/pinctrl/consumer.h> /** * If the temperature over a period of time High,
Signature · 1 line
1.9.1
Quoted 17 lines · Caesar Wang
Missing a include file caused compile error.
drivers/thermal/rockchip_thermal.c:
In function 'rockchip_thermal_suspend':drivers/thermal/rockchip_thermal.c:720:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]pinctrl_pm_select_sleep_state(dev); ^
drivers/thermal/rockchip_thermal.c:
In function 'rockchip_thermal_resume':drivers/thermal/rockchip_thermal.c:759:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration] ^pinctrl_pm_select_default_state(dev);
cc1: some warnings being treated as errors
Quoted 2 lines
Fixes 7e38a5b1daa1 ("thermal: rockchip: support the sleep pinctrl stateto avoid glitches")
Adding this to my tree and sending to ruis too.
Thanks
Quoted 24 lines
Reported-by Stephen Rothwell <[email protected]>Reported-by kbuild test robot <[email protected]>Signed-off-by Caesar Wang <[email protected]>---
drivers/thermal/rockchip_thermal.c | 1 + 1 file changed, 1 insertion(+)drivers/thermal/rockchip_thermal.c +1
-0@@ -25,6 +25,7 @@#include <linux/platform_device.h> #include <linux/reset.h> #include <linux/thermal.h> +#include <linux/pinctrl/consumer.h> /** * If the temperature over a period of time High, Signature · 1 line
1.9.1
Hi Eduardo,
Quoted 19 lines · On Mon, 9 Nov 2015 11:36:39 -0800 Eduardo Valentin <[email protected]> wrote:
Quoted 17 lines · Caesar Wang
Missing a include file caused compile error.
drivers/thermal/rockchip_thermal.c:
In function 'rockchip_thermal_suspend':drivers/thermal/rockchip_thermal.c:720:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]pinctrl_pm_select_sleep_state(dev); ^
drivers/thermal/rockchip_thermal.c:
In function 'rockchip_thermal_resume':drivers/thermal/rockchip_thermal.c:759:2: error: implicit declaration of function 'pinctrl_pm_select_default_state' [-Werror=implicit-function-declaration] ^pinctrl_pm_select_default_state(dev);
cc1: some warnings being treated as errors
Quoted 5 lines
Quoted 2 lines
Fixes 7e38a5b1daa1 ("thermal: rockchip: support the sleep pinctrl stateto avoid glitches")
Adding this to my tree and sending to ruis too.
This missed the merge of the thermal tree into Linus' tree and so is now needed in Linus' tree ASAP (several builds are failing).
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Hello Stephen,
Quoted 7 lines · Stephen Rothwell
Hi Eduardo,
Quoted 4 lines · On Mon, 9 Nov 2015 11:36:39 -0800 Eduardo Valentin <[email protected]> wrote:
Quoted 2 lines · Caesar Wang
Missing a include file caused compile error.
<cut>
Quoted 6 lines
Quoted 3 lines
Adding this to my tree and sending to ruis too.
This missed the merge of the thermal tree into Linus' tree and so is now needed in Linus' tree ASAP (several builds are failing).
Sure. I will send the patch directly to Linus.
Thanks for the heads up.
Quoted 4 lines
Signature · 3 lines
-- Cheers, Stephen Rothwell [email protected]