summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2015-12-03 10:03:48 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-12-04 08:13:44 +0100
commitc2fed64666b79f00fd00bdb3b6dd3407fda6cad8 (patch)
tree0032f96edec48b8d003d36e8bd53b3b11d24cbd7
parent28ab89ec815aacc7b4c598f7af1b9211c21cfb14 (diff)
downloadbarebox-c2fed64666b79f00fd00bdb3b6dd3407fda6cad8.tar.gz
barebox-c2fed64666b79f00fd00bdb3b6dd3407fda6cad8.tar.xz
net: tap: make locally used functions static
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/tap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index ca53f12d92..dfa9bc28d4 100644
--- a/drivers/net/tap.c
+++ b/drivers/net/tap.c
@@ -29,7 +29,7 @@ struct tap_priv {
char *name;
};
-int tap_eth_send (struct eth_device *edev, void *packet, int length)
+static int tap_eth_send(struct eth_device *edev, void *packet, int length)
{
struct tap_priv *priv = edev->priv;
@@ -37,7 +37,7 @@ int tap_eth_send (struct eth_device *edev, void *packet, int length)
return 0;
}
-int tap_eth_rx (struct eth_device *edev)
+static int tap_eth_rx(struct eth_device *edev)
{
struct tap_priv *priv = edev->priv;
int length;
@@ -50,12 +50,12 @@ int tap_eth_rx (struct eth_device *edev)
return 0;
}
-int tap_eth_open(struct eth_device *edev)
+static int tap_eth_open(struct eth_device *edev)
{
return 0;
}
-void tap_eth_halt (struct eth_device *edev)
+static void tap_eth_halt(struct eth_device *edev)
{
/* nothing to do here */
}
@@ -70,7 +70,7 @@ static int tap_set_ethaddr(struct eth_device *edev, const unsigned char *adr)
return 0;
}
-int tap_probe(struct device_d *dev)
+static int tap_probe(struct device_d *dev)
{
struct eth_device *edev;
struct tap_priv *priv;