* [2.6 patch] bonding/bond_main.c: make 2 functions static
@ 2007-07-01 20:21 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-07-01 20:21 UTC (permalink / raw)
To: Andrew Morton; +Cc: ctindel, fubar, bonding-devel, linux-kernel, netdev
This patch makes two needleesly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch has been sent on:
- 31 Mar 2007
drivers/net/bonding/bond_main.c | 5 +++--
drivers/net/bonding/bonding.h | 2 --
2 files changed, 3 insertions(+), 4 deletions(-)
--- linux-2.6.21-rc5-mm3/drivers/net/bonding/bonding.h.old 2007-03-31 21:12:31.000000000 +0200
+++ linux-2.6.21-rc5-mm3/drivers/net/bonding/bonding.h 2007-03-31 21:12:42.000000000 +0200
@@ -301,13 +301,11 @@
void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave);
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_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev);
void bond_mii_monitor(struct net_device *bond_dev);
void bond_loadbalance_arp_mon(struct net_device *bond_dev);
void bond_activebackup_arp_mon(struct net_device *bond_dev);
void bond_set_mode_ops(struct bonding *bond, int mode);
int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl);
-const char *bond_mode_name(int mode);
void bond_select_active_slave(struct bonding *bond);
void bond_change_active_slave(struct bonding *bond, struct slave *new_active);
void bond_register_arp(struct bonding *);
--- linux-2.6.21-rc5-mm3/drivers/net/bonding/bond_main.c.old 2007-03-31 21:12:50.000000000 +0200
+++ linux-2.6.21-rc5-mm3/drivers/net/bonding/bond_main.c 2007-03-31 21:13:16.000000000 +0200
@@ -187,7 +187,7 @@
/*---------------------------- General routines -----------------------------*/
-const char *bond_mode_name(int mode)
+static const char *bond_mode_name(int mode)
{
switch (mode) {
case BOND_MODE_ROUNDROBIN :
@@ -1224,7 +1224,8 @@
/*---------------------------------- IOCTL ----------------------------------*/
-int bond_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev)
+static int bond_sethwaddr(struct net_device *bond_dev,
+ struct net_device *slave_dev)
{
dprintk("bond_dev=%p\n", bond_dev);
dprintk("slave_dev=%p\n", slave_dev);
^ permalink raw reply [flat|nested] 2+ messages in thread* [2.6 patch] bonding/bond_main.c: make 2 functions static
@ 2007-03-31 20:55 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2007-03-31 20:55 UTC (permalink / raw)
To: ctindel, fubar; +Cc: bonding-devel, linux-kernel, netdev
This patch makes two needleesly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/net/bonding/bond_main.c | 5 +++--
drivers/net/bonding/bonding.h | 2 --
2 files changed, 3 insertions(+), 4 deletions(-)
--- linux-2.6.21-rc5-mm3/drivers/net/bonding/bonding.h.old 2007-03-31 21:12:31.000000000 +0200
+++ linux-2.6.21-rc5-mm3/drivers/net/bonding/bonding.h 2007-03-31 21:12:42.000000000 +0200
@@ -301,13 +301,11 @@
void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave);
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_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev);
void bond_mii_monitor(struct net_device *bond_dev);
void bond_loadbalance_arp_mon(struct net_device *bond_dev);
void bond_activebackup_arp_mon(struct net_device *bond_dev);
void bond_set_mode_ops(struct bonding *bond, int mode);
int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl);
-const char *bond_mode_name(int mode);
void bond_select_active_slave(struct bonding *bond);
void bond_change_active_slave(struct bonding *bond, struct slave *new_active);
void bond_register_arp(struct bonding *);
--- linux-2.6.21-rc5-mm3/drivers/net/bonding/bond_main.c.old 2007-03-31 21:12:50.000000000 +0200
+++ linux-2.6.21-rc5-mm3/drivers/net/bonding/bond_main.c 2007-03-31 21:13:16.000000000 +0200
@@ -187,7 +187,7 @@
/*---------------------------- General routines -----------------------------*/
-const char *bond_mode_name(int mode)
+static const char *bond_mode_name(int mode)
{
switch (mode) {
case BOND_MODE_ROUNDROBIN :
@@ -1224,7 +1224,8 @@
/*---------------------------------- IOCTL ----------------------------------*/
-int bond_sethwaddr(struct net_device *bond_dev, struct net_device *slave_dev)
+static int bond_sethwaddr(struct net_device *bond_dev,
+ struct net_device *slave_dev)
{
dprintk("bond_dev=%p\n", bond_dev);
dprintk("slave_dev=%p\n", slave_dev);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-01 20:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-01 20:21 [2.6 patch] bonding/bond_main.c: make 2 functions static Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2007-03-31 20:55 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).