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? Signed-off-by: Ben Dooks <ben.do...@codethink.co.uk> --- Cc: Zhang Rui <rui.zh...@intel.com> Cc: Daniel Lezcano <daniel.lezc...@linaro.org> Cc: Amit Kucheria <amit.kuche...@verdurent.com> Cc: Maxime Coquelin <mcoquelin.st...@gmail.com> Cc: Alexandre Torgue <alexandre.tor...@st.com> Cc: linux...@vger.kernel.org Cc: linux-st...@st-md-mailman.stormreply.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- drivers/thermal/st/stm_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c index cf9ddc52f30e..40bc13c68fba 100644 --- a/drivers/thermal/st/stm_thermal.c +++ b/drivers/thermal/st/stm_thermal.c @@ -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, -- 2.23.0