From f4aa80129ff71909380ee0bde8be36c5cc031d4c Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Sat, 25 May 2019 20:45:10 +0800 Subject: [PATCH] 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 Signed-off-by: YueHaibing Signed-off-by: David S. Miller --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2