PM / OPP: Make _find_opp_table_unlocked() static
Subsystems (4)
PATCH 1/1 PM / OPP: Make _find_opp_table_unlocked() static
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/base/power/opp/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/opp/core.c +1 -1
@@ -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;
Quoted 9 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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 <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 17 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
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 <[email protected]>--- drivers/base/power/opp/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/base/power/opp/core.c +0
-0
drivers/base/power/opp/core.c static struct opp_device *_find_opp_dev(const struct device *dev, · line 51
Quoted 7 lines
drivers/base/power/opp/core.c +1
-1@@ -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 <[email protected]>
Signature · 1 line
viresh