Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4b379d0 authored by Colin Ian King's avatar Colin Ian King Committed by Eduardo Valentin
Browse files

thermal: core: make thermal_emergency_poweroff static



Making thermal_emergency_poweroff static fixes sparse warning:

  drivers/thermal/thermal_core.c:6: warning: symbol
  'thermal_emergency_poweroff' was not declared. Should it be static?

Fixes: ef1d87e0 ("thermal: core: Add a back up thermal shutdown mechanism")
Acked-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 0e774888
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ static DECLARE_DELAYED_WORK(thermal_emergency_poweroff_work,
 * This may be called from any critical situation to trigger a system shutdown
 * after a known period of time. By default this is not scheduled.
 */
void thermal_emergency_poweroff(void)
static void thermal_emergency_poweroff(void)
{
	int poweroff_delay_ms = CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS;
	/*