linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] PM / OPP: Make _find_opp_table_unlocked() static
@ 2017-02-06 14:29 Wei Yongjun
  2017-02-06 23:00 ` Stephen Boyd
  2017-02-07  4:14 ` Viresh Kumar
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2017-02-06 14:29 UTC (permalink / raw)
  To: Viresh Kumar, Nishanth Menon, Stephen Boyd, Rafael J. Wysocki,
	Pavel Machek, Len Brown, Greg Kroah-Hartman
  Cc: Wei Yongjun, linux-pm

From: Wei Yongjun <weiyongjun1@huawei.com>

Fixes the following sparse warning:

drivers/base/power/opp/core.c:49:18: warning:
 symbol '_find_opp_table_unlocked' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/base/power/opp/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c
index 541d32c..91ec323 100644
--- a/drivers/base/power/opp/core.c
+++ b/drivers/base/power/opp/core.c
@@ -46,7 +46,7 @@ static struct opp_device *_find_opp_dev(const struct device *dev,
 	return NULL;
 }
 
-struct opp_table *_find_opp_table_unlocked(struct device *dev)
+static struct opp_table *_find_opp_table_unlocked(struct device *dev)
 {
 	struct opp_table *opp_table;


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] PM / OPP: Make _find_opp_table_unlocked() static
  2017-02-06 14:29 [PATCH -next] PM / OPP: Make _find_opp_table_unlocked() static Wei Yongjun
@ 2017-02-06 23:00 ` Stephen Boyd
  2017-02-07  4:14 ` Viresh Kumar
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2017-02-06 23:00 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Viresh Kumar, Nishanth Menon, Rafael J. Wysocki, Pavel Machek,
	Len Brown, Greg Kroah-Hartman, Wei Yongjun, linux-pm

On 02/06, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> Fixes the following sparse warning:
> 
> drivers/base/power/opp/core.c:49:18: warning:
>  symbol '_find_opp_table_unlocked' was not declared. Should it be static?
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---

Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -next] PM / OPP: Make _find_opp_table_unlocked() static
  2017-02-06 14:29 [PATCH -next] PM / OPP: Make _find_opp_table_unlocked() static Wei Yongjun
  2017-02-06 23:00 ` Stephen Boyd
@ 2017-02-07  4:14 ` Viresh Kumar
  1 sibling, 0 replies; 3+ messages in thread
From: Viresh Kumar @ 2017-02-07  4:14 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Viresh Kumar, Nishanth Menon, Stephen Boyd, Rafael J. Wysocki,
	Pavel Machek, Len Brown, Greg Kroah-Hartman, Wei Yongjun,
	linux-pm

On 06-02-17, 14:29, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> Fixes the following sparse warning:
> 
> drivers/base/power/opp/core.c:49:18: warning:
>  symbol '_find_opp_table_unlocked' was not declared. Should it be static?
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
>  drivers/base/power/opp/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/base/power/opp/core.c b/drivers/base/power/opp/core.c
> index 541d32c..91ec323 100644
> --- a/drivers/base/power/opp/core.c
> +++ b/drivers/base/power/opp/core.c
> @@ -46,7 +46,7 @@ static struct opp_device *_find_opp_dev(const struct device *dev,
>  	return NULL;
>  }
>  
> -struct opp_table *_find_opp_table_unlocked(struct device *dev)
> +static struct opp_table *_find_opp_table_unlocked(struct device *dev)
>  {
>  	struct opp_table *opp_table;

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-07  4:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-06 14:29 [PATCH -next] PM / OPP: Make _find_opp_table_unlocked() static Wei Yongjun
2017-02-06 23:00 ` Stephen Boyd
2017-02-07  4:14 ` Viresh Kumar

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).