[2.6 patch] drivers/net/bonding/: make 3 functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch makes three needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

---

 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;

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux