Commit 325dcf7a authored by Holger Eitzenberger's avatar Holger Eitzenberger Committed by David S. Miller

bonding: make tbl argument to bond_parse_parm() const

bond_parse_parm() parses a parameter table for a particular value and
is therefore not modifying the table at all.  Therefore make the 2nd
argument const, thus allowing to make the tables const later.
Signed-off-by: default avatarHolger Eitzenberger <holger@eitzenberger.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d7875523
...@@ -4723,7 +4723,7 @@ static void bond_free_all(void) ...@@ -4723,7 +4723,7 @@ static void bond_free_all(void)
* some mode names are substrings of other names, and calls from sysfs * some mode names are substrings of other names, and calls from sysfs
* may have whitespace in the name (trailing newlines, for example). * may have whitespace in the name (trailing newlines, for example).
*/ */
int bond_parse_parm(const char *buf, struct bond_parm_tbl *tbl) int bond_parse_parm(const char *buf, const struct bond_parm_tbl *tbl)
{ {
int mode = -1, i, rv; int mode = -1, i, rv;
char *p, modestr[BOND_MAX_MODENAME_LEN + 1] = { 0, }; char *p, modestr[BOND_MAX_MODENAME_LEN + 1] = { 0, };
......
...@@ -337,7 +337,7 @@ void bond_mii_monitor(struct work_struct *); ...@@ -337,7 +337,7 @@ void bond_mii_monitor(struct work_struct *);
void bond_loadbalance_arp_mon(struct work_struct *); void bond_loadbalance_arp_mon(struct work_struct *);
void bond_activebackup_arp_mon(struct work_struct *); void bond_activebackup_arp_mon(struct work_struct *);
void bond_set_mode_ops(struct bonding *bond, int mode); void bond_set_mode_ops(struct bonding *bond, int mode);
int bond_parse_parm(const char *mode_arg, 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);
void bond_change_active_slave(struct bonding *bond, struct slave *new_active); void bond_change_active_slave(struct bonding *bond, struct slave *new_active);
void bond_register_arp(struct bonding *); void bond_register_arp(struct bonding *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment