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:28 +0200
commitb6fd2da81f596cc1f9eeecdc588f596e6653fd9e (patch)
tree63e349a5ba411812a3dff73f3da33a7c45e8108a
parent3bd66e2adb3057473c6d8f07ebbbcf596c3624da (diff)
RDMA/hns: Delete unused variable in hns_roce_v2_modify_qp
function (bsc#1104427 FATE#326416).
-rw-r--r--patches.drivers/RDMA-hns-Delete-unused-variable-in-hns_roce_v2_modif.patch34
-rw-r--r--series.conf1
2 files changed, 35 insertions, 0 deletions
diff --git a/patches.drivers/RDMA-hns-Delete-unused-variable-in-hns_roce_v2_modif.patch b/patches.drivers/RDMA-hns-Delete-unused-variable-in-hns_roce_v2_modif.patch
new file mode 100644
index 0000000000..014a7d2d59
--- /dev/null
+++ b/patches.drivers/RDMA-hns-Delete-unused-variable-in-hns_roce_v2_modif.patch
@@ -0,0 +1,34 @@
+From: Lijun Ou <oulijun@huawei.com>
+Date: Sat, 23 Feb 2019 20:01:28 +0800
+Subject: RDMA/hns: Delete unused variable in hns_roce_v2_modify_qp function
+Patch-mainline: v5.2-rc1
+Git-commit: d0a935563bc0f447abed7799388fa3f13099cc0d
+References: bsc#1104427 FATE#326416
+
+The src_mac array is not used in hns_roce_v2_modify_qp function.
+
+Signed-off-by: Lijun Ou <oulijun@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 --
+ 1 file changed, 2 deletions(-)
+
+--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
++++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+@@ -3975,7 +3975,6 @@ static int hns_roce_v2_modify_qp(struct
+ const struct ib_global_route *grh =
+ rdma_ah_read_grh(&attr->ah_attr);
+ const struct ib_gid_attr *gid_attr = NULL;
+- u8 src_mac[ETH_ALEN];
+ int is_roce_protocol;
+ u16 vlan = 0xffff;
+ u8 ib_port;
+@@ -3990,7 +3989,6 @@ static int hns_roce_v2_modify_qp(struct
+ if (is_roce_protocol) {
+ gid_attr = attr->ah_attr.grh.sgid_attr;
+ vlan = rdma_vlan_dev_vlan_id(gid_attr->ndev);
+- memcpy(src_mac, gid_attr->ndev->dev_addr, ETH_ALEN);
+ }
+
+ if (is_vlan_dev(gid_attr->ndev)) {
diff --git a/series.conf b/series.conf
index ba477bc702..3147f7b5e7 100644
--- a/series.conf
+++ b/series.conf
@@ -46616,6 +46616,7 @@
patches.drivers/RDMA-hns-Only-assgin-some-fields-if-the-relatived-at.patch
patches.drivers/RDMA-hns-Hide-error-print-information-with-roce-vf-d.patch
patches.drivers/RDMA-hns-Bugfix-for-sending-with-invalidate.patch
+ 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/IB-hfi1-Fix-two-format-strings.patch