diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-05-25 15:45:10 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-27 08:16:26 +0300 |
commit | f4aa80129ff71909380ee0bde8be36c5cc031d4c (patch) | |
tree | f35cf598c846629591606e47b90c62297a7ed8ab /drivers/net/ethernet/chelsio | |
parent | 99513cfa16c6f54471f522d897ce48dbe4f2bb43 (diff) | |
download | linux-f4aa80129ff71909380ee0bde8be36c5cc031d4c.tar.xz |
cxgb4: Make t4_get_tp_e2c_map static
Fix sparse warning:
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:6216:14:
warning: symbol 't4_get_tp_e2c_map' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 8c17d1c75e84..a0a2eefc4687 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c @@ -6213,7 +6213,7 @@ unsigned int t4_get_mps_bg_map(struct adapter *adapter, int pidx) * @adapter: the adapter * @pidx: the port index */ -unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx) +static unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx) { unsigned int nports; u32 param, val = 0; |