* [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP
@ 2015-02-06 14:55 grygorii.strashko
2015-02-09 15:01 ` Nishanth Menon
0 siblings, 1 reply; 5+ messages in thread
From: grygorii.strashko @ 2015-02-06 14:55 UTC (permalink / raw)
To: Eduardo Valentin, Zhang Rui
Cc: Viresh Kumar, sumit.semwal, linux-omap, linux-pm, nm,
Grygorii Strashko
From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
Fix following build warning if CONFIG_PM_SLEEP is not set:
drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function]
static int ti_bandgap_suspend(struct device *dev)
^
drivers/thermal/ti-soc-thermal/ti-bandgap.c:1492:12: warning: 'ti_bandgap_resume' defined but not used [-Wunused-function]
static int ti_bandgap_resume(struct device *dev)
^
Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
---
drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
index 74c0e34..5d46660 100644
--- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c
+++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
@@ -1402,7 +1402,7 @@ int ti_bandgap_remove(struct platform_device *pdev)
return 0;
}
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp)
{
int i;
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP
2015-02-06 14:55 [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP grygorii.strashko
@ 2015-02-09 15:01 ` Nishanth Menon
2015-02-24 16:01 ` Grygorii.Strashko@linaro.org
0 siblings, 1 reply; 5+ messages in thread
From: Nishanth Menon @ 2015-02-09 15:01 UTC (permalink / raw)
To: grygorii.strashko
Cc: Eduardo Valentin, Zhang Rui, Viresh Kumar, sumit.semwal,
linux-omap, linux-pm
On 16:55-20150206, grygorii.strashko@linaro.org wrote:
> From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
>
> Fix following build warning if CONFIG_PM_SLEEP is not set:
>
> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function]
> static int ti_bandgap_suspend(struct device *dev)
> ^
> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1492:12: warning: 'ti_bandgap_resume' defined but not used [-Wunused-function]
> static int ti_bandgap_resume(struct device *dev)
> ^
> Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
> ---
> drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
> index 74c0e34..5d46660 100644
> --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c
> +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
> @@ -1402,7 +1402,7 @@ int ti_bandgap_remove(struct platform_device *pdev)
> return 0;
> }
>
> -#ifdef CONFIG_PM
> +#ifdef CONFIG_PM_SLEEP
> static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp)
> {
> int i;
> --
> 1.9.1
>
Suggest aligning with Paul as well:
https://patchwork.kernel.org/patch/5795391/
Otherwise:
Acked-by: Nishanth Menon <nm@ti.com>
--
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP
2015-02-09 15:01 ` Nishanth Menon
@ 2015-02-24 16:01 ` Grygorii.Strashko@linaro.org
2015-02-24 18:03 ` Eduardo Valentin
0 siblings, 1 reply; 5+ messages in thread
From: Grygorii.Strashko@linaro.org @ 2015-02-24 16:01 UTC (permalink / raw)
To: Nishanth Menon, Eduardo Valentin, Zhang Rui, Paul Walmsley
Cc: Viresh Kumar, sumit.semwal, linux-omap, linux-pm
Hi Rui,
On 02/09/2015 05:01 PM, Nishanth Menon wrote:
> On 16:55-20150206, grygorii.strashko@linaro.org wrote:
>> From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
>>
>> Fix following build warning if CONFIG_PM_SLEEP is not set:
>>
>> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function]
>> static int ti_bandgap_suspend(struct device *dev)
>> ^
>> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1492:12: warning: 'ti_bandgap_resume' defined but not used [-Wunused-function]
>> static int ti_bandgap_resume(struct device *dev)
>> ^
>> Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
>> ---
>> drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
>> index 74c0e34..5d46660 100644
>> --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c
>> +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
>> @@ -1402,7 +1402,7 @@ int ti_bandgap_remove(struct platform_device *pdev)
>> return 0;
>> }
>>
>> -#ifdef CONFIG_PM
>> +#ifdef CONFIG_PM_SLEEP
>> static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp)
>> {
>> int i;
>> --
>> 1.9.1
>>
>
> Suggest aligning with Paul as well:
> https://patchwork.kernel.org/patch/5795391/
^Paul Walmsley wrote: Oh, nothing to be confused by, I just missed the
earlier patch. I withdraw mine.
>
> Otherwise:
> Acked-by: Nishanth Menon <nm@ti.com>
>
It looks like this patch is missed in 4.0-rc1, so could it be merged
during rc cycle or you'd like me to resend it?
(I've rechecked - it can be applied on top of Linux 4.0-rc1 without any issues)
--
regards,
-grygorii
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP
2015-02-24 16:01 ` Grygorii.Strashko@linaro.org
@ 2015-02-24 18:03 ` Eduardo Valentin
2015-02-25 8:44 ` Grygorii Strashko
0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Valentin @ 2015-02-24 18:03 UTC (permalink / raw)
To: Grygorii.Strashko@linaro.org
Cc: Nishanth Menon, Zhang Rui, Paul Walmsley, Viresh Kumar,
sumit.semwal, linux-omap, linux-pm
[-- Attachment #1: Type: text/plain, Size: 2120 bytes --]
On Tue, Feb 24, 2015 at 06:01:23PM +0200, Grygorii.Strashko@linaro.org wrote:
> Hi Rui,
>
> On 02/09/2015 05:01 PM, Nishanth Menon wrote:
> > On 16:55-20150206, grygorii.strashko@linaro.org wrote:
> >> From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
> >>
> >> Fix following build warning if CONFIG_PM_SLEEP is not set:
> >>
> >> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function]
> >> static int ti_bandgap_suspend(struct device *dev)
> >> ^
> >> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1492:12: warning: 'ti_bandgap_resume' defined but not used [-Wunused-function]
> >> static int ti_bandgap_resume(struct device *dev)
> >> ^
> >> Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
> >> ---
> >> drivers/thermal/ti-soc-thermal/ti-bandgap.c | 2 +-
> >> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/drivers/thermal/ti-soc-thermal/ti-bandgap.c b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
> >> index 74c0e34..5d46660 100644
> >> --- a/drivers/thermal/ti-soc-thermal/ti-bandgap.c
> >> +++ b/drivers/thermal/ti-soc-thermal/ti-bandgap.c
> >> @@ -1402,7 +1402,7 @@ int ti_bandgap_remove(struct platform_device *pdev)
> >> return 0;
> >> }
> >>
> >> -#ifdef CONFIG_PM
> >> +#ifdef CONFIG_PM_SLEEP
> >> static int ti_bandgap_save_ctxt(struct ti_bandgap *bgp)
> >> {
> >> int i;
> >> --
> >> 1.9.1
> >>
> >
> > Suggest aligning with Paul as well:
> > https://patchwork.kernel.org/patch/5795391/
>
> ^Paul Walmsley wrote: Oh, nothing to be confused by, I just missed the
> earlier patch. I withdraw mine.
>
> >
> > Otherwise:
> > Acked-by: Nishanth Menon <nm@ti.com>
> >
>
> It looks like this patch is missed in 4.0-rc1, so could it be merged
> during rc cycle or you'd like me to resend it?
> (I've rechecked - it can be applied on top of Linux 4.0-rc1 without any issues)
No need to resend. I will add to my -fixes queue.
BR,
Eduardo Valentin
>
>
> --
> regards,
> -grygorii
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP
2015-02-24 18:03 ` Eduardo Valentin
@ 2015-02-25 8:44 ` Grygorii Strashko
0 siblings, 0 replies; 5+ messages in thread
From: Grygorii Strashko @ 2015-02-25 8:44 UTC (permalink / raw)
To: Eduardo Valentin
Cc: Nishanth Menon, Zhang Rui, Paul Walmsley, Viresh Kumar,
Sumit Semwal, Linux OMAP Mailing List, linux-pm
On 24 February 2015 at 20:03, Eduardo Valentin <edubezval@gmail.com> wrote:
> On Tue, Feb 24, 2015 at 06:01:23PM +0200, Grygorii.Strashko@linaro.org wrote:
>> On 02/09/2015 05:01 PM, Nishanth Menon wrote:
>> > On 16:55-20150206, grygorii.strashko@linaro.org wrote:
>> >> From: Grygorii Strashko <Grygorii.Strashko@linaro.org>
>> >>
>> >> Fix following build warning if CONFIG_PM_SLEEP is not set:
>> >>
>> >> drivers/thermal/ti-soc-thermal/ti-bandgap.c:1478:12: warning: 'ti_bandgap_suspend' defined but not used [-Wunused-function]
>> >> static int ti_bandgap_suspend(struct device *dev)
>> >> ^
>> >
>> > Suggest aligning with Paul as well:
>> > https://patchwork.kernel.org/patch/5795391/
>>
>> ^Paul Walmsley wrote: Oh, nothing to be confused by, I just missed the
>> earlier patch. I withdraw mine.
>>
>> >
>> > Otherwise:
>> > Acked-by: Nishanth Menon <nm@ti.com>
>> >
>>
>> It looks like this patch is missed in 4.0-rc1, so could it be merged
>> during rc cycle or you'd like me to resend it?
>> (I've rechecked - it can be applied on top of Linux 4.0-rc1 without any issues)
>
>
> No need to resend. I will add to my -fixes queue.
>
Thanks.
--
Best regards,
-grygorii
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-02-25 8:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-06 14:55 [PATCH] thermal: ti-soc-thermal: bandgap: Fix build warning if !CONFIG_PM_SLEEP grygorii.strashko
2015-02-09 15:01 ` Nishanth Menon
2015-02-24 16:01 ` Grygorii.Strashko@linaro.org
2015-02-24 18:03 ` Eduardo Valentin
2015-02-25 8:44 ` Grygorii Strashko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox