RDMA/qedr: Endianness warnings cleanup
Making a change to fix following sparse warnings reported by kbuild bot.
CHECK drivers/infiniband/hw/qedr/verbs.c
drivers/infiniband/hw/qedr/verbs.c:3872:59: warning: incorrect type in assignment (different base types)
drivers/infiniband/hw/qedr/verbs.c:3872:59: expected restricted __le32 [usertype] sge_prod
drivers/infiniband/hw/qedr/verbs.c:3872:59: got unsigned int [usertype] sge_prod
drivers/infiniband/hw/qedr/verbs.c:3875:59: warning: incorrect type in assignment (different base types)
drivers/infiniband/hw/qedr/verbs.c:3875:59: expected restricted __le32 [usertype] wqe_prod
drivers/infiniband/hw/qedr/verbs.c:3875:59: got unsigned int [usertype] wqe_prod
Link: https://lore.kernel.org/r/20201001100959.19940-1-palok@marvell.com
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: acca72e2b0
("RDMA/qedr: SRQ's bug fixes")
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: Alok Prasad <palok@marvell.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
3c4e919b48
commit
f45271acdf
|
@ -3861,10 +3861,10 @@ int qedr_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr,
|
||||||
* in first 4 bytes and need to update WQE producer in
|
* in first 4 bytes and need to update WQE producer in
|
||||||
* next 4 bytes.
|
* next 4 bytes.
|
||||||
*/
|
*/
|
||||||
srq->hw_srq.virt_prod_pair_addr->sge_prod = hw_srq->sge_prod;
|
srq->hw_srq.virt_prod_pair_addr->sge_prod = cpu_to_le32(hw_srq->sge_prod);
|
||||||
/* Make sure sge producer is updated first */
|
/* Make sure sge producer is updated first */
|
||||||
dma_wmb();
|
dma_wmb();
|
||||||
srq->hw_srq.virt_prod_pair_addr->wqe_prod = hw_srq->wqe_prod;
|
srq->hw_srq.virt_prod_pair_addr->wqe_prod = cpu_to_le32(hw_srq->wqe_prod);
|
||||||
|
|
||||||
wr = wr->next;
|
wr = wr->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue