cxgb4: make symbol pedits static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 24 Jan 2018 02:14:33 +0000 (02:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 21:58:16 +0000 (16:58 -0500)
Fixes the following sparse warning:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c:46:27: warning:
 symbol 'pedits' was not declared. Should it be static?

Fixes: 27ece1f357b7 ("cxgb4: add tc flower support for ETH-DMAC rewrite")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c

index 4fee3553e1a329a6937e06ee08454cb01d67568c..36563364bae7cf9fbd7361c418838b671fc7fdd1 100644 (file)
@@ -43,7 +43,7 @@
 
 #define STATS_CHECK_PERIOD (HZ / 2)
 
-struct ch_tc_pedit_fields pedits[] = {
+static struct ch_tc_pedit_fields pedits[] = {
        PEDIT_FIELDS(ETH_, DMAC_31_0, 4, dmac, 0),
        PEDIT_FIELDS(ETH_, DMAC_47_32, 2, dmac, 4),
        PEDIT_FIELDS(ETH_, SMAC_15_0, 2, smac, 0),