net: stmmac: make tc_flow_parsers static

The tc_flow_parsers is not used outside of the driver, so
make it static to avoid the following sparse warning:

drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c:516:3: warning: symbol 'tc_flow_parsers' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ben Dooks (Codethink) 2019-10-15 17:17:48 +01:00 committed by David S. Miller
parent 539825a536
commit bad28d889c

View File

@ -510,7 +510,7 @@ static struct stmmac_flow_entry *tc_find_flow(struct stmmac_priv *priv,
return NULL; return NULL;
} }
struct { static struct {
int (*fn)(struct stmmac_priv *priv, struct flow_cls_offload *cls, int (*fn)(struct stmmac_priv *priv, struct flow_cls_offload *cls,
struct stmmac_flow_entry *entry); struct stmmac_flow_entry *entry);
} tc_flow_parsers[] = { } tc_flow_parsers[] = {