Skip to content

Commit c4b379d

Browse files
Colin Ian KingEduardo Valentin
authored andcommitted
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: ef1d87e ("thermal: core: Add a back up thermal shutdown mechanism") Acked-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
1 parent 0e77488 commit c4b379d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/thermal_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static DECLARE_DELAYED_WORK(thermal_emergency_poweroff_work,
359359
* This may be called from any critical situation to trigger a system shutdown
360360
* after a known period of time. By default this is not scheduled.
361361
*/
362-
void thermal_emergency_poweroff(void)
362+
static void thermal_emergency_poweroff(void)
363363
{
364364
int poweroff_delay_ms = CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS;
365365
/*

0 commit comments

Comments
 (0)