]> Git Repo - linux.git/commitdiff
cxgb4: Make t4_get_tp_e2c_map static
authorYueHaibing <[email protected]>
Sat, 25 May 2019 12:45:10 +0000 (20:45 +0800)
committerDavid S. Miller <[email protected]>
Mon, 27 May 2019 05:16:26 +0000 (22:16 -0700)
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 <[email protected]>
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

index 8c17d1c75e844b2c5a779ab9ecee412d5d0b1937..a0a2eefc4687f629e5db84e2c879379c8b094c47 100644 (file)
@@ -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;
This page took 0.070252 seconds and 4 git commands to generate.