diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-20 21:37:13 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-20 11:20:12 -0700 |
commit | 881d7afdff165159a7138e56523889eac27d84c8 (patch) | |
tree | f5252c1e9a2a09e8365f44fccd41ec2115d177eb /drivers/net/ethernet/hisilicon | |
parent | 75d317c40964c50e476df3f86de6fed135048cd2 (diff) | |
download | linux-881d7afdff165159a7138e56523889eac27d84c8.tar.bz2 |
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: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index 3a093a92eac5..722bb3124bb6 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c @@ -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); |