[-next] PM / OPP: Make _find_opp_table_unlocked() static
diff mbox

Message ID 20170206142955.790-1-weiyj.lk@gmail.com
State Mainlined
Delegated to: Rafael Wysocki
Headers show

Commit Message

Wei Yongjun Feb. 6, 2017, 2:29 p.m. UTC
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(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Stephen Boyd Feb. 6, 2017, 11 p.m. UTC | #1
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>
Viresh Kumar Feb. 7, 2017, 4:14 a.m. UTC | #2
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>

Patch
diff mbox

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;