]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite16fd6874fab4339425c79f01ab9d23836320620
tree5ca04c16441a96e0b2ad8a2ca0ced24bd9824c2b
parentfed41f9ab6f93bb2779452ec14db7d8fa8832bc6
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