Skip to contentSkip to conversation

thermal: rockchip: fix compile error

PATCH In review Caesar Wang 3 participants 4 messages Nov 8, 2015 – Nov 12, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Fixes 7e38a5b1daa1 ("thermal: rockchip: support the sleep pinctrl state

to avoid glitches")

---

 drivers/thermal/rockchip_thermal.c | 1 +
 1 file changed, 1 insertion(+)
drivers/thermal/rockchip_thermal.c +1 -0
index df28049..8928d67 100644
@@ -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
#1 lore raw
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 state

to avoid glitches")

Adding this to my tree and sending to ruis too.

Thanks

Quoted 24 lines

---

 drivers/thermal/rockchip_thermal.c | 1 +
 1 file changed, 1 insertion(+)
drivers/thermal/rockchip_thermal.c +1 -0
index df28049..8928d67 100644
@@ -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
#2 lore raw

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 state

to 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]
#3 lore raw

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]