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:28:44 +0200
commit227e1e14d4821dc6f8b042f51ec2a52eebe5f42e (patch)
treeb6a255ba73e4916b8fd65ea45727ae12fcff15bd
parenta09113e1b9be0c979674173f6c081254fd203e04 (diff)
RDMA/hns: Make some function static (bsc#1104427 FATE#326416
bsc#1126206).
-rw-r--r--patches.drivers/RDMA-hns-Make-some-function-static.patch60
-rw-r--r--series.conf1
2 files changed, 61 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Make-some-function-static.patch b/patches.drivers/RDMA-hns-Make-some-function-static.patch
new file mode 100644
index 0000000000..95f39ddb79
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Make-some-function-static.patch
@@ -0,0 +1,60 @@
+From: YueHaibing <yuehaibing@huawei.com>
+Date: Fri, 1 Feb 2019 11:11:04 +0800
+Subject: RDMA/hns: Make some function static
+Patch-mainline: v5.1-rc1
+Git-commit: c3c668e742397dfc107e44c09606cc68b37df30d
+References: bsc#1104427 FATE#326416 bsc#1126206
+
+Fixes the following sparse warnings:
+
+drivers/infiniband/hw/hns/hns_roce_hw_v2.c:5822:5: warning:
+ symbol 'hns_roce_v2_query_srq' was not declared. Should it be static?
+drivers/infiniband/hw/hns/hns_roce_srq.c:158:6: warning:
+ symbol 'hns_roce_srq_free' was not declared. Should it be static?
+drivers/infiniband/hw/hns/hns_roce_srq.c:81:5: warning:
+ symbol 'hns_roce_srq_alloc' was not declared. Should it be static?
+
+Signed-off-by: YueHaibing <yuehaibing@huawei.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 +-
+ drivers/infiniband/hw/hns/hns_roce_srq.c | 9 +++++----
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+@@ -5818,7 +5818,7 @@ static int hns_roce_v2_modify_srq(struct
+ return 0;
+ }
+
+-int hns_roce_v2_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr)
++static int hns_roce_v2_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr)
+ {
+ struct hns_roce_dev *hr_dev = to_hr_dev(ibsrq->device);
+ struct hns_roce_srq *srq = to_hr_srq(ibsrq);
+--- a/drivers/infiniband/hw/hns/hns_roce_srq.c
++++ b/drivers/infiniband/hw/hns/hns_roce_srq.c
+@@ -79,9 +79,9 @@ static int hns_roce_hw2sw_srq(struct hns
+ HNS_ROCE_CMD_TIMEOUT_MSECS);
+ }
+
+-int hns_roce_srq_alloc(struct hns_roce_dev *hr_dev, u32 pdn, u32 cqn, u16 xrcd,
+- struct hns_roce_mtt *hr_mtt, u64 db_rec_addr,
+- struct hns_roce_srq *srq)
++static int hns_roce_srq_alloc(struct hns_roce_dev *hr_dev, u32 pdn, u32 cqn,
++ u16 xrcd, struct hns_roce_mtt *hr_mtt,
++ u64 db_rec_addr, struct hns_roce_srq *srq)
+ {
+ struct hns_roce_srq_table *srq_table = &hr_dev->srq_table;
+ struct hns_roce_cmd_mailbox *mailbox;
+@@ -160,7 +160,8 @@ err_out:
+ return ret;
+ }
+
+-void hns_roce_srq_free(struct hns_roce_dev *hr_dev, struct hns_roce_srq *srq)
++static void hns_roce_srq_free(struct hns_roce_dev *hr_dev,
++ struct hns_roce_srq *srq)
+ {
+ struct hns_roce_srq_table *srq_table = &hr_dev->srq_table;
+ int ret;
diff --git a/series.conf b/series.conf
index 7742fe98d6..daaee4db2e 100644
--- a/series.conf
+++ b/series.conf
@@ -45479,6 +45479,7 @@
patches.drivers/RDMA-vmw_pvrdma-Support-upto-64-bit-PFNs.patch
patches.drivers/IB-ipoib-Make-ipoib_intercept_dev_id_attr-static.patch
patches.drivers/RDMA-hns-Remove-set-but-not-used-variable-rst.patch
+ patches.drivers/RDMA-hns-Make-some-function-static.patch
patches.drivers/iw_cxgb-kzalloc-the-iwcm-verbs-struct.patch
patches.drivers/IB-mlx5-Do-not-use-hw_access_flags-for-be-and-CPU-da.patch
patches.drivers/RDMA-bnxt_re-Add-chip-context-to-identify-57500-seri.patch