net: stmmac: make tc_flow_parsers static
Subsystems (4)
PATCH 1/1 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?
---
Cc: Giuseppe Cavallaro <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Cc: Jose Abreu <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
--- drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c +1 -1
@@ -510,7 +510,7 @@ static struct stmmac_flow_entry *tc_find_flow(struct stmmac_priv *priv,return NULL ; } -struct { +static struct {int (*fn)(struct stmmac_priv *priv,struct flow_cls_offload *cls,struct stmmac_flow_entry *entry); } tc_flow_parsers[] = {
Signature · 1 line
2.23.0
From: "Ben Dooks (Codethink)" <[email protected]>
Date: Tue, 15 Oct 2019 17:17:48 +0100
Quoted 6 lines
The
tc_flow_parsersis 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 <[email protected]>
Applied.