macintosh/windfarm: Make symbol 'pm121_sys_state' static
authorYu Kuai <yukuai3@huawei.com>
Wed, 7 Apr 2021 12:57:12 +0000 (20:57 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Apr 2021 13:04:13 +0000 (23:04 +1000)
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
drivers/macintosh/windfarm_pm121.c

index ab467b9c31be7ef1bc90aa6cf835881408f7af9d..ba1ec6fc11d21138d0434b35e0b74227278ebf43 100644 (file)
@@ -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 ******