Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

YueHaibing and committed by
David S. Miller
f4aa8012 99513cfa

+1 -1
+1 -1
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
··· 6213 6213 * @adapter: the adapter 6214 6214 * @pidx: the port index 6215 6215 */ 6216 - unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx) 6216 + static unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx) 6217 6217 { 6218 6218 unsigned int nports; 6219 6219 u32 param, val = 0;