Home Home > GIT Browse > openSUSE-15.1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-07 13:27:44 +0200
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2019-06-07 13:30:33 +0200
commit8ee3278b0a07a6ea73fe98da3b756e2dccdf7826 (patch)
treee19240c32b715325bb94e10532099ed03c7d792a
parentb6fd2da81f596cc1f9eeecdc588f596e6653fd9e (diff)
RDMA/hns: Limit scope of hns_roce_cmq_send() (bsc#1104427
-rw-r--r--patches.drivers/RDMA-hns-Limit-scope-of-hns_roce_cmq_send.patch34
-rw-r--r--series.conf1
2 files changed, 35 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Limit-scope-of-hns_roce_cmq_send.patch b/patches.drivers/RDMA-hns-Limit-scope-of-hns_roce_cmq_send.patch
new file mode 100644
index 0000000000..8c19fffea0
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Limit-scope-of-hns_roce_cmq_send.patch
@@ -0,0 +1,34 @@
+From: Leon Romanovsky <leonro@mellanox.com>
+Date: Tue, 19 Mar 2019 11:10:09 +0200
+Subject: RDMA/hns: Limit scope of hns_roce_cmq_send()
+Patch-mainline: v5.2-rc1
+Git-commit: e95e52a1788d4a8af547261875c0fbae2e6e3028
+References: bsc#1104427 FATE#326416
+
+The forgotten static keyword causes to the following error to appear while
+building HNS driver. Declare hns_roce_cmq_send() to be static function to
+fix this warning.
+
+drivers/infiniband/hw/hns/hns_roce_hw_v2.c:1089:5: warning: no previous
+prototype for _hns_roce_cmq_send_ [-Wmissing-prototypes]
+ int hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
+
+Fixes: 6a04aed6afae ("RDMA/hns: Fix the chip hanging caused by sending mailbox&CMQ during reset")
+Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
+Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
+Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
+---
+ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+@@ -1086,7 +1086,7 @@ static int __hns_roce_cmq_send(struct hn
+ return ret;
+ }
+
+-int hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
++static int hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
+ struct hns_roce_cmq_desc *desc, int num)
+ {
+ int retval;
diff --git a/series.conf b/series.conf
index 3147f7b5e7..9b12adbc58 100644
--- a/series.conf
+++ b/series.conf
@@ -46619,6 +46619,7 @@
patches.drivers/RDMA-hns-Delete-unused-variable-in-hns_roce_v2_modif.patch
patches.drivers/RDMA-i40iw-Handle-workqueue-allocation-failure.patch
patches.fixes/overflow-Fix-Wtype-limits-compilation-warnings.patch
+ patches.drivers/RDMA-hns-Limit-scope-of-hns_roce_cmq_send.patch
patches.drivers/IB-hfi1-Fix-two-format-strings.patch
patches.drivers/RDMA-cxbg-Use-correct-sizing-on-buffers-holding-page.patch
patches.drivers/RDMA-rdmavt-Use-correct-sizing-on-buffers-holding-pa.patch