Skip to content

Commit 3243e04

Browse files
Chen Wandundavem330
authored andcommitted
net: dsa: ocelot: fix "should it be static?" warnings
Fix following sparse warnings: drivers/net/dsa/ocelot/felix.c:351:6: warning: symbol 'felix_txtstamp' was not declared. Should it be static? Signed-off-by: Chen Wandun <[email protected]> Reviewed-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent fd1fef0 commit 3243e04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/dsa/ocelot/felix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ static bool felix_rxtstamp(struct dsa_switch *ds, int port,
348348
return false;
349349
}
350350

351-
bool felix_txtstamp(struct dsa_switch *ds, int port,
352-
struct sk_buff *clone, unsigned int type)
351+
static bool felix_txtstamp(struct dsa_switch *ds, int port,
352+
struct sk_buff *clone, unsigned int type)
353353
{
354354
struct ocelot *ocelot = ds->priv;
355355
struct ocelot_port *ocelot_port = ocelot->ports[port];

0 commit comments

Comments
 (0)