diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-01-24 02:14:33 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-24 16:58:16 -0500 |
commit | 1d174e95176dfe5bdcec78f2d5b9440dd79798c3 (patch) | |
tree | db5ed72496256ba8abf3ac08938ca91ce87d15aa | |
parent | b423d13c08a656c719fa56324a8f4279c835d90c (diff) | |
download | linux-stable-1d174e95176dfe5bdcec78f2d5b9440dd79798c3.tar.gz linux-stable-1d174e95176dfe5bdcec78f2d5b9440dd79798c3.tar.bz2 linux-stable-1d174e95176dfe5bdcec78f2d5b9440dd79798c3.zip |
cxgb4: make symbol pedits static
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>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c index 4fee3553e1a3..36563364bae7 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c @@ -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), |