From 13ddd0e3acf988a98b46800178ae691640b0cd00 Mon Sep 17 00:00:00 2001 From: Yu Kuai Date: Wed, 7 Apr 2021 20:57:12 +0800 Subject: [PATCH] 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 Signed-off-by: Yu Kuai Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210407125712.4138033-1-yukuai3@huawei.com --- drivers/macintosh/windfarm_pm121.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/macintosh/windfarm_pm121.c b/drivers/macintosh/windfarm_pm121.c index ab467b9..ba1ec6f 100644 --- a/drivers/macintosh/windfarm_pm121.c +++ b/drivers/macintosh/windfarm_pm121.c @@ -433,7 +433,7 @@ struct pm121_sys_state { struct wf_pid_state pid; }; -struct pm121_sys_state *pm121_sys_state[N_LOOPS] = {}; +static struct pm121_sys_state *pm121_sys_state[N_LOOPS] = {}; /* * ****** CPU Fans Control Loop ****** -- 2.7.4