]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Limit scope of hns_roce_cmq_send()
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 19 Mar 2019 09:10:09 +0000 (11:10 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 Mar 2019 18:25:50 +0000 (15:25 -0300)
commitd6b8412c0eaa73ee802512d0e9ee941e05101021
tree58764989978dcf14d1a0c3c456a660bff1ef3cdd
parent12fd5db095fa0e030428fa73d79fb14a1a06b095
RDMA/hns: Limit scope of hns_roce_cmq_send()

The forgotten static keyword causes to the following error to appear while
building HNS driver. Declare hns_roce_cmq_send() to be static function to
fix this warning.

drivers/infiniband/hw/hns/hns_roce_hw_v2.c:1089:5: warning: no previous
prototype for _hns_roce_cmq_send_ [-Wmissing-prototypes]
 int hns_roce_cmq_send(struct hns_roce_dev *hr_dev,

Fixes: cbfbd3e1c8ab ("RDMA/hns: Fix the chip hanging caused by sending mailbox&CMQ during reset")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c