Skip to contentSkip to conversation

thermal: stm32: make stm_thermal_pm_ops static

PATCH In review Ben Dooks 2 participants 2 messages Oct 15, 2019

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 thermal: stm32: make stm_thermal_pm_ops static

The stm_thermal_pm_ops struct is not exported to any other units, so make it static to avoid the following sparse warning:

drivers/thermal/st/stm_thermal.c:599:1: warning: symbol 'stm_thermal_pm_ops' was not declared. Should it be static?

---
Cc: Zhang Rui <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Amit Kucheria <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/thermal/st/stm_thermal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/st/stm_thermal.c +1 -1
index cf9ddc52f30e..40bc13c68fba 100644
@@ -596,7 +596,7 @@ static int stm_thermal_resume(struct device *dev)
 }
 #endif /* CONFIG_PM_SLEEP */
 
-SIMPLE_DEV_PM_OPS(stm_thermal_pm_ops, stm_thermal_suspend, stm_thermal_resume);
+static SIMPLE_DEV_PM_OPS(stm_thermal_pm_ops, stm_thermal_suspend, stm_thermal_resume);
 
 static const struct thermal_zone_of_device_ops stm_tz_ops = {
 	.get_temp	= stm_thermal_get_temp,
Signature · 1 line
2.23.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ben Dooks

The stm_thermal_pm_ops struct is not exported to any other units, so make it static to avoid the following sparse warning:

drivers/thermal/st/stm_thermal.c:599:1: warning: symbol 'stm_thermal_pm_ops' was not declared. Should it be static?

Thanks,

Benjamin

Quoted 21 lines

---
Cc: Zhang Rui <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Amit Kucheria <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
  drivers/thermal/st/stm_thermal.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/st/stm_thermal.c +0 -0
index cf9ddc52f30e..40bc13c68fba 100644

drivers/thermal/st/stm_thermal.c static int stm_thermal_resume(struct device *dev) · line 602

Quoted 8 lines
drivers/thermal/st/stm_thermal.c +1 -1
@@ -596,7 +596,7 @@ static int stm_thermal_resume(struct device *dev)
  }
  #endif /* CONFIG_PM_SLEEP */
 
-SIMPLE_DEV_PM_OPS(stm_thermal_pm_ops, stm_thermal_suspend, stm_thermal_resume);
+static SIMPLE_DEV_PM_OPS(stm_thermal_pm_ops, stm_thermal_suspend, stm_thermal_resume);
 
  static const struct thermal_zone_of_device_ops stm_tz_ops = {
  	.get_temp	= stm_thermal_get_temp,

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel