提交 881d7afd 编写于 作者: Y YueHaibing 提交者: David S. Miller

net: hns3: Make hclge_destroy_cmd_queue static

Fix sparse warning:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c:414:6:
 warning: symbol 'hclge_destroy_cmd_queue' was not declared. Should it be static?
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 75d317c4
...@@ -411,7 +411,7 @@ static void hclge_destroy_queue(struct hclge_cmq_ring *ring) ...@@ -411,7 +411,7 @@ static void hclge_destroy_queue(struct hclge_cmq_ring *ring)
spin_unlock(&ring->lock); spin_unlock(&ring->lock);
} }
void hclge_destroy_cmd_queue(struct hclge_hw *hw) static void hclge_destroy_cmd_queue(struct hclge_hw *hw)
{ {
hclge_destroy_queue(&hw->cmq.csq); hclge_destroy_queue(&hw->cmq.csq);
hclge_destroy_queue(&hw->cmq.crq); hclge_destroy_queue(&hw->cmq.crq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册