mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/2] net: tap: make locally used functions static
Date: Thu,  3 Dec 2015 10:03:48 +0300	[thread overview]
Message-ID: <1449126229-11256-2-git-send-email-antonynpavlov@gmail.com> (raw)
In-Reply-To: <1449126229-11256-1-git-send-email-antonynpavlov@gmail.com>

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 drivers/net/tap.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index ca53f12..dfa9bc2 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;
-- 
2.6.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2015-12-03  7:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03  7:03 [PATCH 0/2] net: tap: trivial fixes Antony Pavlov
2015-12-03  7:03 ` Antony Pavlov [this message]
2015-12-03  7:03 ` [PATCH 2/2] net: tap: fix whitespaces Antony Pavlov
2015-12-04  7:13 ` [PATCH 0/2] net: tap: trivial fixes Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1449126229-11256-2-git-send-email-antonynpavlov@gmail.com \
    --to=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox