summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2021-04-07 20:57:12 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2021-04-14 23:04:13 +1000
commit13ddd0e3acf988a98b46800178ae691640b0cd00 (patch)
treeaaaf8188b63601a0f2d89ee55b3eb5c254b367dd /drivers
parentf6f1f48e8b3b242dfa684d6e1b930d239d87533a (diff)
downloadlinux-13ddd0e3acf988a98b46800178ae691640b0cd00.tar.bz2
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 <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210407125712.4138033-1-yukuai3@huawei.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/macintosh/windfarm_pm121.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/windfarm_pm121.c b/drivers/macintosh/windfarm_pm121.c
index ab467b9c31be..ba1ec6fc11d2 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 ******