]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: Endianness warnings cleanup
authorAlok Prasad <palok@marvell.com>
Thu, 1 Oct 2020 10:09:59 +0000 (10:09 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Oct 2020 23:50:37 +0000 (20:50 -0300)
commitdd056c11c41f8b2ed2e2434073ee6b4bf1f7a1fe
tree085f4fa3a49c9af640b9c0f19a18ee4f4ced6e40
parent6dcb18613af2704785e114ff16ebad2667156371
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: 00b76ef82bd5 ("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>
drivers/infiniband/hw/qedr/verbs.c