summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_device.h
diff options
context:
space:
mode:
authorYangyang Li <liyangyang20@huawei.com>2021-06-18 18:10:17 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-06-22 15:17:07 -0300
commita33958ca5204f8d2342fd8fe9f547e33fa6c07ed (patch)
treeb5f9cca722802ab48a377c6c48c717d841516e27 /drivers/infiniband/hw/hns/hns_roce_device.h
parentc2614b99337db74d1f667e447798c5434658ac7e (diff)
downloadlinux-a33958ca5204f8d2342fd8fe9f547e33fa6c07ed.tar.gz
linux-a33958ca5204f8d2342fd8fe9f547e33fa6c07ed.tar.bz2
linux-a33958ca5204f8d2342fd8fe9f547e33fa6c07ed.zip
RDMA/hns: Modify function return value type
hns_roce_init_qp_table() will only return 0, because this function does not need to return a value, so it is modified to void type. Link: https://lore.kernel.org/r/1624011020-16992-8-git-send-email-liweihang@huawei.com Signed-off-by: Yangyang Li <liyangyang20@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_device.h')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index 905c2e20e35a..cb01b25bc93e 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -1146,7 +1146,7 @@ int hns_roce_mtr_map(struct hns_roce_dev *hr_dev, struct hns_roce_mtr *mtr,
void hns_roce_init_pd_table(struct hns_roce_dev *hr_dev);
void hns_roce_init_mr_table(struct hns_roce_dev *hr_dev);
void hns_roce_init_cq_table(struct hns_roce_dev *hr_dev);
-int hns_roce_init_qp_table(struct hns_roce_dev *hr_dev);
+void hns_roce_init_qp_table(struct hns_roce_dev *hr_dev);
int hns_roce_init_srq_table(struct hns_roce_dev *hr_dev);
void hns_roce_init_xrcd_table(struct hns_roce_dev *hr_dev);