]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix the wrong type of parameter "op" of the mailbox
authorWenpeng Liang <liangwenpeng@huawei.com>
Wed, 2 Mar 2022 06:48:25 +0000 (14:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 4 Mar 2022 21:36:31 +0000 (17:36 -0400)
commit5d4bbd83e5a1fc219ff265fe865404a11846228a
tree2e8f37b67134030ab5ffdd7cacd5e11481956065
parentc30e66332e7fb6c319f57ccc1b3a58e01a2d47e2
RDMA/hns: Fix the wrong type of parameter "op" of the mailbox

The "op" field of the mailbox occupies 8 bits, so the parameter "op"
should be of type u8.

Link: https://lore.kernel.org/r/20220302064830.61706-5-liangwenpeng@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_cmd.c
drivers/infiniband/hw/hns/hns_roce_cmd.h
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hem.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c