linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] thermal: core: Make thermal_cdev_set_cur_state() static
@ 2020-07-06 13:36 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2020-07-06 13:36 UTC (permalink / raw)
  To: Hulk Robot, Zhang Rui, Daniel Lezcano; +Cc: Wei Yongjun, linux-pm

sparse report build warning as follows:

drivers/thermal/thermal_helpers.c:178:6: warning:
 symbol 'thermal_cdev_set_cur_state' was not declared. Should it be static?

Since function thermal_cdev_set_cur_state() is not used out of
thermal_helpers.c, so marks it static.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/thermal/thermal_helpers.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/thermal/thermal_helpers.c b/drivers/thermal/thermal_helpers.c
index 53dd92ccfd19..00a3df6a2d62 100644
--- a/drivers/thermal/thermal_helpers.c
+++ b/drivers/thermal/thermal_helpers.c
@@ -175,7 +175,8 @@ void thermal_zone_set_trips(struct thermal_zone_device *tz)
 	mutex_unlock(&tz->lock);
 }
 
-void thermal_cdev_set_cur_state(struct thermal_cooling_device *cdev, int target)
+static void thermal_cdev_set_cur_state(struct thermal_cooling_device *cdev,
+				       int target)
 {
 	if (cdev->ops->set_cur_state(cdev, target))
 		return;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-06 13:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 13:36 [PATCH -next] thermal: core: Make thermal_cdev_set_cur_state() static Wei Yongjun

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