Skip to content

Commit 4ad072c

Browse files
AdrianBunkJeff Garzik
authored andcommitted
bonding/bond_main.c: make 2 functions static
Signed-off-by: Adrian Bunk <[email protected]> Cc: Chad Tindel <[email protected]> Cc: Jay Vosburgh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent 02c1889 commit 4ad072c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void bond_send_gratuitous_arp(struct bonding *bond);
187187

188188
/*---------------------------- General routines -----------------------------*/
189189

190-
const char *bond_mode_name(int mode)
190+
static const char *bond_mode_name(int mode)
191191
{
192192
switch (mode) {
193193
case BOND_MODE_ROUNDROBIN :
@@ -1224,7 +1224,8 @@ static void bond_detach_slave(struct bonding *bond, struct slave *slave)
12241224

12251225
/*---------------------------------- IOCTL ----------------------------------*/
12261226

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)
12281229
{
12291230
dprintk("bond_dev=%p\n", bond_dev);
12301231
dprintk("slave_dev=%p\n", slave_dev);

drivers/net/bonding/bonding.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,11 @@ int bond_create_slave_symlinks(struct net_device *master, struct net_device *sla
301301
void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave);
302302
int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev);
303303
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);
305304
void bond_mii_monitor(struct net_device *bond_dev);
306305
void bond_loadbalance_arp_mon(struct net_device *bond_dev);
307306
void bond_activebackup_arp_mon(struct net_device *bond_dev);
308307
void bond_set_mode_ops(struct bonding *bond, int mode);
309308
int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl);
310-
const char *bond_mode_name(int mode);
311309
void bond_select_active_slave(struct bonding *bond);
312310
void bond_change_active_slave(struct bonding *bond, struct slave *new_active);
313311
void bond_register_arp(struct bonding *);

0 commit comments

Comments
 (0)