From: Adrian Bunk <bunk@stusta.de>
To: ctindel@users.sourceforge.net, fubar@us.ibm.com
Cc: bonding-devel@lists.sourceforge.net, jgarzik@pobox.com,
linux-net@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/net/bonding/: make 3 functions static
Date: Thu, 17 Feb 2005 21:24:59 +0100 [thread overview]
Message-ID: <20050217202459.GA6194@stusta.de> (raw)
This patch makes three needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/net/bonding/bond_3ad.c | 2 +-
drivers/net/bonding/bond_3ad.h | 1 -
drivers/net/bonding/bond_alb.c | 4 ++--
3 files changed, 3 insertions(+), 4 deletions(-)
--- linux-2.6.11-rc3-mm2-full/drivers/net/bonding/bond_3ad.h.old 2005-02-16 15:23:23.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/bonding/bond_3ad.h 2005-02-16 15:23:29.000000000 +0100
@@ -290,7 +290,6 @@
int bond_3ad_bind_slave(struct slave *slave);
void bond_3ad_unbind_slave(struct slave *slave);
void bond_3ad_state_machine_handler(struct bonding *bond);
-void bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave, u16 length);
void bond_3ad_adapter_speed_changed(struct slave *slave);
void bond_3ad_adapter_duplex_changed(struct slave *slave);
void bond_3ad_handle_link_change(struct slave *slave, char link);
--- linux-2.6.11-rc3-mm2-full/drivers/net/bonding/bond_3ad.c.old 2005-02-16 15:23:37.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/bonding/bond_3ad.c 2005-02-16 15:23:45.000000000 +0100
@@ -2175,7 +2175,7 @@
* received frames (loopback). Since only the payload is given to this
* function, it check for loopback.
*/
-void bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave, u16 length)
+static void bond_3ad_rx_indication(struct lacpdu *lacpdu, struct slave *slave, u16 length)
{
struct port *port;
--- linux-2.6.11-rc3-mm2-full/drivers/net/bonding/bond_alb.c.old 2005-02-16 15:24:01.000000000 +0100
+++ linux-2.6.11-rc3-mm2-full/drivers/net/bonding/bond_alb.c 2005-02-16 15:24:21.000000000 +0100
@@ -275,7 +275,7 @@
}
/* Caller must hold bond lock for read */
-struct slave *tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len)
+static struct slave *tlb_choose_channel(struct bonding *bond, u32 hash_index, u32 skb_len)
{
struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
struct tlb_client_info *hash_table;
@@ -627,7 +627,7 @@
}
/* Caller must hold both bond and ptr locks for read */
-struct slave *rlb_choose_channel(struct sk_buff *skb, struct bonding *bond)
+static struct slave *rlb_choose_channel(struct sk_buff *skb, struct bonding *bond)
{
struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
struct arp_pkt *arp = (struct arp_pkt *)skb->nh.raw;
reply other threads:[~2005-02-17 20:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050217202459.GA6194@stusta.de \
--to=bunk@stusta.de \
--cc=bonding-devel@lists.sourceforge.net \
--cc=ctindel@users.sourceforge.net \
--cc=fubar@us.ibm.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.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