Skip to content

Commit 13ddd0e

Browse files
YuKuai-huaweimpe
authored andcommitted
macintosh/windfarm: Make symbol 'pm121_sys_state' static
The sparse tool complains as follows: drivers/macintosh/windfarm_pm121.c:436:24: warning: symbol 'pm121_sys_state' was not declared. Should it be static? This symbol is not used outside of windfarm_pm121.c, so this commit marks it static. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Yu Kuai <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f6f1f48 commit 13ddd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/macintosh/windfarm_pm121.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ struct pm121_sys_state {
433433
struct wf_pid_state pid;
434434
};
435435

436-
struct pm121_sys_state *pm121_sys_state[N_LOOPS] = {};
436+
static struct pm121_sys_state *pm121_sys_state[N_LOOPS] = {};
437437

438438
/*
439439
* ****** CPU Fans Control Loop ******

0 commit comments

Comments
 (0)