]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Dec 2021 13:28:08 +0000 (14:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Dec 2021 13:28:08 +0000 (14:28 +0100)
added patches:
ipmi-msghandler-make-symbol-remove_work_wq-static.patch

queue-5.15/ipmi-msghandler-make-symbol-remove_work_wq-static.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/ipmi-msghandler-make-symbol-remove_work_wq-static.patch b/queue-5.15/ipmi-msghandler-make-symbol-remove_work_wq-static.patch
new file mode 100644 (file)
index 0000000..c455076
--- /dev/null
@@ -0,0 +1,38 @@
+From 5a3ba99b62d8486de0316334e72ac620d4b94fdd Mon Sep 17 00:00:00 2001
+From: Wei Yongjun <weiyongjun1@huawei.com>
+Date: Tue, 23 Nov 2021 08:36:18 +0000
+Subject: ipmi: msghandler: Make symbol 'remove_work_wq' static
+
+From: Wei Yongjun <weiyongjun1@huawei.com>
+
+commit 5a3ba99b62d8486de0316334e72ac620d4b94fdd upstream.
+
+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: 1d49eb91e86e ("ipmi: Move remove_work to dedicated workqueue")
+Reported-by: Hulk Robot <hulkci@huawei.com>
+Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
+Message-Id: <20211123083618.2366808-1-weiyongjun1@huawei.com>
+Signed-off-by: Corey Minyard <cminyard@mvista.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/char/ipmi/ipmi_msghandler.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/char/ipmi/ipmi_msghandler.c
++++ b/drivers/char/ipmi/ipmi_msghandler.c
+@@ -191,7 +191,7 @@ struct ipmi_user {
+       struct work_struct remove_work;
+ };
+-struct workqueue_struct *remove_work_wq;
++static struct workqueue_struct *remove_work_wq;
+ static struct ipmi_user *acquire_ipmi_user(struct ipmi_user *user, int *index)
+       __acquires(user->release_barrier)
index 6083312be6e28c2b694e071e117a0c21d35192ab..033e62fa532784d499bc222c9c9cfc54d8438198 100644 (file)
@@ -204,3 +204,4 @@ serial-8250-fix-rts-modem-control-while-in-rs485-mode.patch
 serial-liteuart-fix-null-pointer-dereference-in-remove.patch
 serial-liteuart-fix-use-after-free-and-memleak-on-unbind.patch
 serial-liteuart-fix-minor-number-leak-on-probe-errors.patch
+ipmi-msghandler-make-symbol-remove_work_wq-static.patch