]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/hns: Fix cast from or to restricted __le32 for driver
authorLang Cheng <chenglang@huawei.com>
Wed, 21 Aug 2019 13:14:32 +0000 (21:14 +0800)
committerDoug Ledford <dledford@redhat.com>
Wed, 28 Aug 2019 15:57:26 +0000 (11:57 -0400)
commitbfe860351e31e71913d4e6c46aae5724b661a519
tree5079a64079d1eee5dd5731c4dbeaf519d702cff9
parent90c559b1864aa52518c10d5535bf5d5ea74189e5
RDMA/hns: Fix cast from or to restricted __le32 for driver

Sparse is whining about the u32 and __le32 mixed usage in the driver.
The roce_set_field() is used to __le32 data of hardware only.
If a variable is not delivered to the hardware, the __le32 type and
related operations are not required.

Signed-off-by: Lang Cheng <chenglang@huawei.com>
Link: https://lore.kernel.org/r/1566393276-42555-6-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_mr.c
drivers/infiniband/hw/hns/hns_roce_qp.c