Skip to content

Commit 1dbb986

Browse files
YueHaibingdavem330
authored andcommitted
net: dsa: sja1105: Make two functions static
Fix sparse warnings: drivers/net/dsa/sja1105/sja1105_main.c:1848:6: warning: symbol 'sja1105_port_rxtstamp' was not declared. Should it be static? drivers/net/dsa/sja1105/sja1105_main.c:1869:6: warning: symbol 'sja1105_port_txtstamp' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Tested-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a842fe1 commit 1dbb986

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/dsa/sja1105/sja1105_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,8 +1845,8 @@ static void sja1105_rxtstamp_work(struct work_struct *work)
18451845
}
18461846

18471847
/* Called from dsa_skb_defer_rx_timestamp */
1848-
bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
1849-
struct sk_buff *skb, unsigned int type)
1848+
static bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
1849+
struct sk_buff *skb, unsigned int type)
18501850
{
18511851
struct sja1105_private *priv = ds->priv;
18521852
struct sja1105_tagger_data *data = &priv->tagger_data;
@@ -1866,8 +1866,8 @@ bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
18661866
* the skb and have it available in DSA_SKB_CB in the .port_deferred_xmit
18671867
* callback, where we will timestamp it synchronously.
18681868
*/
1869-
bool sja1105_port_txtstamp(struct dsa_switch *ds, int port,
1870-
struct sk_buff *skb, unsigned int type)
1869+
static bool sja1105_port_txtstamp(struct dsa_switch *ds, int port,
1870+
struct sk_buff *skb, unsigned int type)
18711871
{
18721872
struct sja1105_private *priv = ds->priv;
18731873
struct sja1105_port *sp = &priv->ports[port];

0 commit comments

Comments
 (0)