Commit 4204ecd5 authored by Yu Kuai's avatar Yu Kuai Committed by Michael Ellerman

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210407125738.4138480-1-yukuai3@huawei.com
parent 13ddd0e3
...@@ -56,7 +56,7 @@ static BLOCKING_NOTIFIER_HEAD(wf_client_list); ...@@ -56,7 +56,7 @@ static BLOCKING_NOTIFIER_HEAD(wf_client_list);
static int wf_client_count; static int wf_client_count;
static unsigned int wf_overtemp; static unsigned int wf_overtemp;
static unsigned int wf_overtemp_counter; static unsigned int wf_overtemp_counter;
struct task_struct *wf_thread; static struct task_struct *wf_thread;
static struct platform_device wf_platform_device = { static struct platform_device wf_platform_device = {
.name = "windfarm", .name = "windfarm",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment