Skip to content

Commit 4204ecd

Browse files
YuKuai-huaweimpe
authored andcommitted
windfarm: make symbol 'wf_thread' static
The sparse tool complains as follows: drivers/macintosh/windfarm_core.c:59:20: warning: symbol 'wf_thread' was not declared. Should it be static? This symbol is not used outside of windfarm_core.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 13ddd0e commit 4204ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/macintosh/windfarm_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static BLOCKING_NOTIFIER_HEAD(wf_client_list);
5656
static int wf_client_count;
5757
static unsigned int wf_overtemp;
5858
static unsigned int wf_overtemp_counter;
59-
struct task_struct *wf_thread;
59+
static struct task_struct *wf_thread;
6060

6161
static struct platform_device wf_platform_device = {
6262
.name = "windfarm",

0 commit comments

Comments
 (0)