android_kernel_xiaomi_sm7250/drivers/infiniband
Leon Romanovsky 8ea2791846 RDMA/hns: Fix bad endianess of port_pd variable
[ Upstream commit 6734b2973565e36659e97e12ab0d0faf1d9f3fbe ]

port_pd is treated as le32 in declaration and read, fix assignment to be
in le32 too. This change fixes the following compilation warnings.

drivers/infiniband/hw/hns/hns_roce_ah.c:67:24: warning: incorrect type
in assignment (different base types)
drivers/infiniband/hw/hns/hns_roce_ah.c:67:24: expected restricted __le32 [usertype] port_pd
drivers/infiniband/hw/hns/hns_roce_ah.c:67:24: got restricted __be32 [usertype]

Fixes: 9a4435375c ("IB/hns: Add driver files for hns RoCE driver")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Gal Pressman <galpress@amazon.com>
Reviewed-by: Lijun Ou <ouliun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-31 06:46:28 -07:00
..
core RDMA/cma: Consider scope_id while binding to ipv6 ll address 2019-05-31 06:46:16 -07:00
hw RDMA/hns: Fix bad endianess of port_pd variable 2019-05-31 06:46:28 -07:00
sw IB/rdmavt: Fix frwr memory registration 2019-05-02 09:58:54 +02:00
ulp scsi: RDMA/srpt: Fix a credit leak for aborted commands 2019-05-08 07:21:52 +02:00
Kconfig IB/ucm: fix UCM link error 2018-08-21 16:56:32 -06:00
Makefile