Skip to content

Commit

Permalink
macintosh/windfarm: Make symbol 'pm121_sys_state' static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Yu Kuai authored and Michael Ellerman committed Apr 14, 2021
1 parent f6f1f48 commit 13ddd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/macintosh/windfarm_pm121.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ******
Expand Down

0 comments on commit 13ddd0e

Please sign in to comment.