RDMA/hns: Fix restricted __le16 degrades to integer issue
authorJunxian Huang <huangjunxian6@hisilicon.com>
Mon, 9 Sep 2024 06:53:31 +0000 (14:53 +0800)
committerLeon Romanovsky <leon@kernel.org>
Tue, 10 Sep 2024 13:42:53 +0000 (16:42 +0300)
commitf4ccc0a2a0c5977540f519588636b5bc81aae2db
tree9b32fac59fed45dfb9097146a9daf206ca6f58d0
parent9cd30319bbd497b9fac13e822f184b84fd50ef88
RDMA/hns: Fix restricted __le16 degrades to integer issue

Fix sparse warnings: restricted __le16 degrades to integer.

Fixes: 5a87279591a1 ("RDMA/hns: Support hns HW stats")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409080508.g4mNSLwy-lkp@intel.com/
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20240909065331.3950268-1-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c