summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/erdma/erdma.h
diff options
context:
space:
mode:
authorCheng Xu <chengyou@linux.alibaba.com>2022-09-09 12:38:19 +0300
committerLeon Romanovsky <leon@kernel.org>2022-09-20 14:27:51 +0300
commit95f911d94995861311d78c77acb91af1ad6b8cc5 (patch)
treedb54d0230849b0ad6e221457489d7e71746adeb5 /drivers/infiniband/hw/erdma/erdma.h
parent6dbe4a8dead84de474483910b02ec9e6a10fc1a9 (diff)
downloadlinux-95f911d94995861311d78c77acb91af1ad6b8cc5.tar.xz
RDMA/erdma: Eliminate unnecessary casting for erdma_post_cmd_wait
erdma_post_cmd_wait does not use the 'u64 *req' input parameter directly. So it is better to define it to 'void *req', and by this we can eliminate the casting when calling erdma_post_cmd_wait. Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com> Link: https://lore.kernel.org/r/20220909093822.33868-2-chengyou@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/erdma/erdma.h')
-rw-r--r--drivers/infiniband/hw/erdma/erdma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/erdma/erdma.h b/drivers/infiniband/hw/erdma/erdma.h
index 2aae635c1c8d..07bcd688fdb7 100644
--- a/drivers/infiniband/hw/erdma/erdma.h
+++ b/drivers/infiniband/hw/erdma/erdma.h
@@ -269,7 +269,7 @@ void erdma_finish_cmdq_init(struct erdma_dev *dev);
void erdma_cmdq_destroy(struct erdma_dev *dev);
void erdma_cmdq_build_reqhdr(u64 *hdr, u32 mod, u32 op);
-int erdma_post_cmd_wait(struct erdma_cmdq *cmdq, u64 *req, u32 req_size,
+int erdma_post_cmd_wait(struct erdma_cmdq *cmdq, void *req, u32 req_size,
u64 *resp0, u64 *resp1);
void erdma_cmdq_completion_handler(struct erdma_cmdq *cmdq);