RDMA/hns: Prevent le32 from being implicitly converted to u32
authorLang Cheng <chenglang@huawei.com>
Fri, 2 Apr 2021 09:07:34 +0000 (17:07 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 8 Apr 2021 19:08:22 +0000 (16:08 -0300)
commit69455df04e12334a51b8e80569cb3dfe4de57373
tree5ca04c16441a96e0b2ad8a2ca0ced24bd9824c2b
parent782832f25404b03de1aa745fe9c26d373dc1198a
RDMA/hns: Prevent le32 from being implicitly converted to u32

Replace BUILD_BUG_ON_ZERO() with BUILD_BUG_ON() to avoid sparse
complaining "restricted __le32 degrades to integer".

Link: https://lore.kernel.org/r/1617354454-47840-10-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_common.h