Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6da67d26 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

bonding: make more functions static



More functions in bonding that can be declared static because
they are only used in one file.

Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3678a9d8
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -2088,7 +2088,7 @@ static void bond_miimon_commit(struct bonding *bond)
 * an acquisition of appropriate locks followed by a commit phase to
 * an acquisition of appropriate locks followed by a commit phase to
 * implement whatever link state changes are indicated.
 * implement whatever link state changes are indicated.
 */
 */
void bond_mii_monitor(struct work_struct *work)
static void bond_mii_monitor(struct work_struct *work)
{
{
	struct bonding *bond = container_of(work, struct bonding,
	struct bonding *bond = container_of(work, struct bonding,
					    mii_work.work);
					    mii_work.work);
@@ -2377,7 +2377,7 @@ static bool bond_time_in_interval(struct bonding *bond, unsigned long last_act,
 * arp is transmitted to generate traffic. see activebackup_arp_monitor for
 * arp is transmitted to generate traffic. see activebackup_arp_monitor for
 * arp monitoring in active backup mode.
 * arp monitoring in active backup mode.
 */
 */
void bond_loadbalance_arp_mon(struct work_struct *work)
static void bond_loadbalance_arp_mon(struct work_struct *work)
{
{
	struct bonding *bond = container_of(work, struct bonding,
	struct bonding *bond = container_of(work, struct bonding,
					    arp_work.work);
					    arp_work.work);
@@ -2714,7 +2714,7 @@ static void bond_ab_arp_probe(struct bonding *bond)
	rcu_assign_pointer(bond->current_arp_slave, new_slave);
	rcu_assign_pointer(bond->current_arp_slave, new_slave);
}
}


void bond_activebackup_arp_mon(struct work_struct *work)
static void bond_activebackup_arp_mon(struct work_struct *work)
{
{
	struct bonding *bond = container_of(work, struct bonding,
	struct bonding *bond = container_of(work, struct bonding,
					    arp_work.work);
					    arp_work.work);
+0 −3
Original line number Original line Diff line number Diff line
@@ -423,9 +423,6 @@ void bond_destroy_sysfs(struct bond_net *net);
void bond_prepare_sysfs_group(struct bonding *bond);
void bond_prepare_sysfs_group(struct bonding *bond);
int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev);
int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev);
int bond_release(struct net_device *bond_dev, struct net_device *slave_dev);
int bond_release(struct net_device *bond_dev, struct net_device *slave_dev);
void bond_mii_monitor(struct work_struct *);
void bond_loadbalance_arp_mon(struct work_struct *);
void bond_activebackup_arp_mon(struct work_struct *);
int bond_xmit_hash(struct bonding *bond, struct sk_buff *skb, int count);
int bond_xmit_hash(struct bonding *bond, struct sk_buff *skb, int count);
int bond_parse_parm(const char *mode_arg, const struct bond_parm_tbl *tbl);
int bond_parse_parm(const char *mode_arg, const struct bond_parm_tbl *tbl);
void bond_select_active_slave(struct bonding *bond);
void bond_select_active_slave(struct bonding *bond);