Skip to content

Commit

Permalink
windfarm: make symbol 'wf_thread' static
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Yu Kuai authored and Michael Ellerman committed Apr 14, 2021
1 parent 13ddd0e commit 4204ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/macintosh/windfarm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static BLOCKING_NOTIFIER_HEAD(wf_client_list);
static int wf_client_count;
static unsigned int wf_overtemp;
static unsigned int wf_overtemp_counter;
struct task_struct *wf_thread;
static struct task_struct *wf_thread;

static struct platform_device wf_platform_device = {
.name = "windfarm",
Expand Down

0 comments on commit 4204ecd

Please sign in to comment.