]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: hns3: Make hclge_destroy_cmd_queue static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 20 Mar 2019 13:37:13 +0000 (21:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2019 18:20:12 +0000 (11:20 -0700)
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: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c

index 3a093a92eac516ac40d12309371c3780dc7b20f4..722bb3124bb69713bdc7e80a187bfa2dcc62bd2b 100644 (file)
@@ -411,7 +411,7 @@ static void hclge_destroy_queue(struct hclge_cmq_ring *ring)
        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.crq);