From: Stephen Hemminger <stephen@networkplumber.org>
To: Jay Vosburgh <fubar@us.ibm.com>,
Veaceslav Falico <vfalico@redhat.com>,
Andy Gospodarek <andy@greyhouse.net>
Cc: netdev@vger.kernel.org
Subject: [PATCH net-next] bonding: make local function static
Date: Sun, 29 Dec 2013 11:41:25 -0800 [thread overview]
Message-ID: <20131229114125.1db8d541@nehalam.linuxnetplumber.net> (raw)
bond_xmit_slave_id is only used in main.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
drivers/net/bonding/bond_main.c | 2 +-
drivers/net/bonding/bonding.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
--- a/drivers/net/bonding/bond_main.c 2013-12-24 15:15:26.649742798 -0800
+++ b/drivers/net/bonding/bond_main.c 2013-12-24 15:16:00.429288806 -0800
@@ -3511,7 +3511,7 @@ unwind:
* it fails, it tries to find the first available slave for transmission.
* The skb is consumed in all cases, thus the function is void.
*/
-void bond_xmit_slave_id(struct bonding *bond, struct sk_buff *skb, int slave_id)
+static void bond_xmit_slave_id(struct bonding *bond, struct sk_buff *skb, int slave_id)
{
struct list_head *iter;
struct slave *slave;
--- a/drivers/net/bonding/bonding.h 2013-12-24 15:15:26.649742798 -0800
+++ b/drivers/net/bonding/bonding.h 2013-12-24 15:16:00.429288806 -0800
@@ -417,7 +417,6 @@ struct bond_net;
int bond_arp_rcv(const struct sk_buff *skb, struct bonding *bond, struct slave *slave);
int bond_dev_queue_xmit(struct bonding *bond, struct sk_buff *skb, struct net_device *slave_dev);
-void bond_xmit_slave_id(struct bonding *bond, struct sk_buff *skb, int slave_id);
int bond_create(struct net *net, const char *name);
int bond_create_sysfs(struct bond_net *net);
void bond_destroy_sysfs(struct bond_net *net);
next reply other threads:[~2013-12-29 19:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-29 19:41 Stephen Hemminger [this message]
2013-12-29 21:38 ` [PATCH net-next] bonding: make local function static David Miller
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=20131229114125.1db8d541@nehalam.linuxnetplumber.net \
--to=stephen@networkplumber.org \
--cc=andy@greyhouse.net \
--cc=fubar@us.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=vfalico@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.