Skip to content

Commit 5a3ba99

Browse files
Wei Yongjuncminyard
authored andcommitted
ipmi: msghandler: Make symbol 'remove_work_wq' static
The sparse tool complains as follows: drivers/char/ipmi/ipmi_msghandler.c:194:25: warning: symbol 'remove_work_wq' was not declared. Should it be static? This symbol is not used outside of ipmi_msghandler.c, so marks it static. Fixes: 1d49eb9 ("ipmi: Move remove_work to dedicated workqueue") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Message-Id: <[email protected]> Signed-off-by: Corey Minyard <[email protected]>
1 parent 1d49eb9 commit 5a3ba99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/ipmi/ipmi_msghandler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct ipmi_user {
191191
struct work_struct remove_work;
192192
};
193193

194-
struct workqueue_struct *remove_work_wq;
194+
static struct workqueue_struct *remove_work_wq;
195195

196196
static struct ipmi_user *acquire_ipmi_user(struct ipmi_user *user, int *index)
197197
__acquires(user->release_barrier)

0 commit comments

Comments
 (0)