Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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/20210407125738.4138480-1-yukuai3@huawei.com

authored by

Yu Kuai and committed by
Michael Ellerman
4204ecd5 13ddd0e3

+1 -1
+1 -1
drivers/macintosh/windfarm_core.c
··· 56 56 static int wf_client_count; 57 57 static unsigned int wf_overtemp; 58 58 static unsigned int wf_overtemp_counter; 59 - struct task_struct *wf_thread; 59 + static struct task_struct *wf_thread; 60 60 61 61 static struct platform_device wf_platform_device = { 62 62 .name = "windfarm",