diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-07-09 14:51:12 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-10 14:31:45 -0400 |
commit | 4ad072c984ebe329c99965ddd1e58b0bb24af12b (patch) | |
tree | 08474fde537dff35865e2e13d1f81a33ae31a9bd /drivers/net | |
parent | 02c1889166b47b9ade309a8f4b7c4ddf0489d869 (diff) |
bonding/bond_main.c: make 2 functions static
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Chad Tindel <ctindel@users.sourceforge.net>
Cc: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 5 | ||||
-rw-r--r-- | drivers/net/bonding/bonding.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 2bb70e052090..cb9cb3013f42 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c | |||
@@ -187,7 +187,7 @@ static void bond_send_gratuitous_arp(struct bonding *bond); | |||
187 | 187 | ||
188 | /*---------------------------- General routines -----------------------------*/ | 188 | /*---------------------------- General routines -----------------------------*/ |
189 | 189 | ||
190 | const char *bond_mode_name(int mode) | 190 | static const char *bond_mode_name(int mode) |
191 | { | 191 | { |
192 | switch (mode) { | 192 | switch (mode) { |
193 | case BOND_MODE_ROUNDROBIN : | 193 | case BOND_MODE_ROUNDROBIN : |
@@ -1224,7 +1224,8 @@ static void bond_detach_slave(struct bonding *bond, struct slave *slave) | |||
1224 | 1224 | ||
1225 | /*---------------------------------- IOCTL ----------------------------------*/ | 1225 | /*---------------------------------- IOCTL ----------------------------------*/ |
1226 | 1226 | ||
1227 | int bond_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev) | 1227 | static int bond_sethwaddr(struct net_device *bond_dev, |
1228 | struct net_device *slave_dev) | ||
1228 | { | 1229 | { |
1229 | dprintk("bond_dev=%p\n", bond_dev); | 1230 | dprintk("bond_dev=%p\n", bond_dev); |
1230 | dprintk("slave_dev=%p\n", slave_dev); | 1231 | dprintk("slave_dev=%p\n", slave_dev); |
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index a89102116ccb..6dcbd25e3ef0 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -301,13 +301,11 @@ int bond_create_slave_symlinks(struct net_device *master, struct net_device *sla | |||
301 | void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave); | 301 | void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave); |
302 | int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev); | 302 | int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev); |
303 | int bond_release(struct net_device *bond_dev, struct net_device *slave_dev); | 303 | int bond_release(struct net_device *bond_dev, struct net_device *slave_dev); |
304 | int bond_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev); | ||
305 | void bond_mii_monitor(struct net_device *bond_dev); | 304 | void bond_mii_monitor(struct net_device *bond_dev); |
306 | void bond_loadbalance_arp_mon(struct net_device *bond_dev); | 305 | void bond_loadbalance_arp_mon(struct net_device *bond_dev); |
307 | void bond_activebackup_arp_mon(struct net_device *bond_dev); | 306 | void bond_activebackup_arp_mon(struct net_device *bond_dev); |
308 | void bond_set_mode_ops(struct bonding *bond, int mode); | 307 | void bond_set_mode_ops(struct bonding *bond, int mode); |
309 | int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl); | 308 | int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl); |
310 | const char *bond_mode_name(int mode); | ||
311 | void bond_select_active_slave(struct bonding *bond); | 309 | void bond_select_active_slave(struct bonding *bond); |
312 | void bond_change_active_slave(struct bonding *bond, struct slave *new_active); | 310 | void bond_change_active_slave(struct bonding *bond, struct slave *new_active); |
313 | void bond_register_arp(struct bonding *); | 311 | void bond_register_arp(struct bonding *); |