diff mbox series

cxgb4: make function 'cxgb4_mqprio_free_hw_resources' static

Message ID 1573478770-79161-1-git-send-email-zhengbin13@huawei.com
State Changes Requested
Delegated to: David Miller
Headers show
Series cxgb4: make function 'cxgb4_mqprio_free_hw_resources' static | expand

Commit Message

Zheng Bin Nov. 11, 2019, 1:26 p.m. UTC
Fix sparse warnings:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:242:6: warning: symbol 'cxgb4_mqprio_free_hw_resources' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4

Comments

David Miller Nov. 12, 2019, 6:08 a.m. UTC | #1
From: zhengbin <zhengbin13@huawei.com>
Date: Mon, 11 Nov 2019 21:26:10 +0800

> Fix sparse warnings:
> 
> drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c:242:6: warning: symbol 'cxgb4_mqprio_free_hw_resources' was not declared. Should it be static?
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: zhengbin <zhengbin13@huawei.com>

I'm not applying any more of these Hulk robot fixed until you fix your Subject
lines to indicate the appropriate target GIT tree your patches should be
applied to.

You also need to provide appropriate Fixes: tags as well.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c
index 143cb1f..3880784 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_mqprio.c
@@ -239,7 +239,7 @@  static int cxgb4_mqprio_alloc_hw_resources(struct net_device *dev)
 	return ret;
 }

-void cxgb4_mqprio_free_hw_resources(struct net_device *dev)
+static void cxgb4_mqprio_free_hw_resources(struct net_device *dev)
 {
 	struct port_info *pi = netdev2pinfo(dev);
 	struct adapter *adap = netdev2adap(dev);