Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1dbb9869 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Tested-by: default avatarVladimir Oltean <olteanv@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a842fe14
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -1845,7 +1845,7 @@ static void sja1105_rxtstamp_work(struct work_struct *work)
}
}


/* Called from dsa_skb_defer_rx_timestamp */
/* Called from dsa_skb_defer_rx_timestamp */
bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
static bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
				  struct sk_buff *skb, unsigned int type)
				  struct sk_buff *skb, unsigned int type)
{
{
	struct sja1105_private *priv = ds->priv;
	struct sja1105_private *priv = ds->priv;
@@ -1866,7 +1866,7 @@ bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
 * the skb and have it available in DSA_SKB_CB in the .port_deferred_xmit
 * the skb and have it available in DSA_SKB_CB in the .port_deferred_xmit
 * callback, where we will timestamp it synchronously.
 * callback, where we will timestamp it synchronously.
 */
 */
bool sja1105_port_txtstamp(struct dsa_switch *ds, int port,
static bool sja1105_port_txtstamp(struct dsa_switch *ds, int port,
				  struct sk_buff *skb, unsigned int type)
				  struct sk_buff *skb, unsigned int type)
{
{
	struct sja1105_private *priv = ds->priv;
	struct sja1105_private *priv = ds->priv;