* [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF)
@ 2020-03-03 8:04 Anson Huang
2020-03-03 8:04 ` [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL Anson Huang
2020-03-03 9:02 ` [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Daniel Lezcano
0 siblings, 2 replies; 5+ messages in thread
From: Anson Huang @ 2020-03-03 8:04 UTC (permalink / raw)
To: rui.zhang, daniel.lezcano, amit.kucheria, linux-pm, linux-kernel
Cc: Linux-imx
Add "inline" to thermal_zone_of_get_sensor_id() function to avoid below
build warning of !defined(CONFIG_THERMAL_OF).
In file included from drivers/hwmon/hwmon.c:22:
include/linux/thermal.h:382:12: warning: 'thermal_zone_of_get_sensor_id'
defined but not used [-Wunused-function]
382 | static int thermal_zone_of_get_sensor_id(struct device_node *tz_np,
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
include/linux/thermal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 53e6f67..c91b1e3 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -379,7 +379,7 @@ void devm_thermal_zone_of_sensor_unregister(struct device *dev,
struct thermal_zone_device *tz);
#else
-static int thermal_zone_of_get_sensor_id(struct device_node *tz_np,
+static inline int thermal_zone_of_get_sensor_id(struct device_node *tz_np,
struct device_node *sensor_np,
u32 *id)
{
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL
2020-03-03 8:04 [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Anson Huang
@ 2020-03-03 8:04 ` Anson Huang
2020-03-03 9:14 ` Amit Kucheria
2020-03-03 9:02 ` [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Daniel Lezcano
1 sibling, 1 reply; 5+ messages in thread
From: Anson Huang @ 2020-03-03 8:04 UTC (permalink / raw)
To: rui.zhang, daniel.lezcano, amit.kucheria, linux-pm, linux-kernel
Cc: Linux-imx
i.MX SCU thermal driver depends on IMX_SCU which does NOT have
COMPILE_TEST enabled, so need to remove COMPILE_TEST for i.MX
SCU thermal as well.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/thermal/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 165b7d6..4fb87df 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -253,7 +253,7 @@ config IMX_THERMAL
config IMX_SC_THERMAL
tristate "Temperature sensor driver for NXP i.MX SoCs with System Controller"
- depends on IMX_SCU || COMPILE_TEST
+ depends on IMX_SCU
depends on OF
help
Support for Temperature Monitor (TEMPMON) found on NXP i.MX SoCs with
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF)
2020-03-03 8:04 [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Anson Huang
2020-03-03 8:04 ` [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL Anson Huang
@ 2020-03-03 9:02 ` Daniel Lezcano
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Lezcano @ 2020-03-03 9:02 UTC (permalink / raw)
To: Anson Huang, rui.zhang, amit.kucheria, linux-pm, linux-kernel
Cc: Linux-imx, Stephen Rothwell
On 03/03/2020 09:04, Anson Huang wrote:
> Add "inline" to thermal_zone_of_get_sensor_id() function to avoid below
> build warning of !defined(CONFIG_THERMAL_OF).
>
> In file included from drivers/hwmon/hwmon.c:22:
> include/linux/thermal.h:382:12: warning: 'thermal_zone_of_get_sensor_id'
> defined but not used [-Wunused-function]
> 382 | static int thermal_zone_of_get_sensor_id(struct device_node *tz_np,
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL
2020-03-03 8:04 ` [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL Anson Huang
@ 2020-03-03 9:14 ` Amit Kucheria
2020-03-03 9:19 ` Anson Huang
0 siblings, 1 reply; 5+ messages in thread
From: Amit Kucheria @ 2020-03-03 9:14 UTC (permalink / raw)
To: Anson Huang; +Cc: Zhang Rui, Daniel Lezcano, Linux PM list, LKML, Linux-imx
On Tue, Mar 3, 2020 at 1:40 PM Anson Huang <Anson.Huang@nxp.com> wrote:
>
> i.MX SCU thermal driver depends on IMX_SCU which does NOT have
> COMPILE_TEST enabled, so need to remove COMPILE_TEST for i.MX
> SCU thermal as well.
Wouldn't a better solution be to add COMPILE_TEST to IMX_SCU to
improve compile coverage?
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> drivers/thermal/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
> index 165b7d6..4fb87df 100644
> --- a/drivers/thermal/Kconfig
> +++ b/drivers/thermal/Kconfig
> @@ -253,7 +253,7 @@ config IMX_THERMAL
>
> config IMX_SC_THERMAL
> tristate "Temperature sensor driver for NXP i.MX SoCs with System Controller"
> - depends on IMX_SCU || COMPILE_TEST
> + depends on IMX_SCU
> depends on OF
> help
> Support for Temperature Monitor (TEMPMON) found on NXP i.MX SoCs with
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL
2020-03-03 9:14 ` Amit Kucheria
@ 2020-03-03 9:19 ` Anson Huang
0 siblings, 0 replies; 5+ messages in thread
From: Anson Huang @ 2020-03-03 9:19 UTC (permalink / raw)
To: Amit Kucheria
Cc: Zhang Rui, Daniel Lezcano, Linux PM list, LKML, dl-linux-imx
Hi, Amit
> Subject: Re: [PATCH 2/2] thermal: Remove COMPILE_TEST for
> IMX_SC_THERMAL
>
> On Tue, Mar 3, 2020 at 1:40 PM Anson Huang <Anson.Huang@nxp.com>
> wrote:
> >
> > i.MX SCU thermal driver depends on IMX_SCU which does NOT have
> > COMPILE_TEST enabled, so need to remove COMPILE_TEST for i.MX SCU
> > thermal as well.
>
> Wouldn't a better solution be to add COMPILE_TEST to IMX_SCU to improve
> compile coverage?
It is a good idea, but I think since there are many i.MX8 modules driver also depend on IMX_SCU,
It would be better to cut another patch set to enable COMPILE_TEST for IMX_SCU as well
as all those modules that depend on it, then the compile coverage will cover all i.MX8 modules
depend on IMX_SCU.
Thanks,
Anson
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-03-03 9:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 8:04 [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Anson Huang
2020-03-03 8:04 ` [PATCH 2/2] thermal: Remove COMPILE_TEST for IMX_SC_THERMAL Anson Huang
2020-03-03 9:14 ` Amit Kucheria
2020-03-03 9:19 ` Anson Huang
2020-03-03 9:02 ` [PATCH 1/2] thermal: Fix build warning of !defined(CONFIG_THERMAL_OF) Daniel Lezcano
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).