Commit 28f084cc authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

bonding: fix const in options processing

This is a fixup patch to resolve issues with const from my earlier patch.
Make all the setter functions use const on input parameter.
Signed-off-by: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f542efc
This diff is collapsed.
...@@ -94,12 +94,13 @@ struct bond_option { ...@@ -94,12 +94,13 @@ struct bond_option {
*/ */
const struct bond_opt_value *values; const struct bond_opt_value *values;
int (*set)(struct bonding *bond, struct bond_opt_value *val); int (*set)(struct bonding *bond, const struct bond_opt_value *val);
}; };
int __bond_opt_set(struct bonding *bond, unsigned int option, int __bond_opt_set(struct bonding *bond, unsigned int option,
struct bond_opt_value *val); struct bond_opt_value *val);
int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf); int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf);
const struct bond_opt_value *bond_opt_parse(const struct bond_option *opt, const struct bond_opt_value *bond_opt_parse(const struct bond_option *opt,
struct bond_opt_value *val); struct bond_opt_value *val);
const struct bond_option *bond_opt_get(unsigned int option); const struct bond_option *bond_opt_get(unsigned int option);
......
...@@ -65,7 +65,7 @@ static void bond_info_seq_stop(struct seq_file *seq, void *v) ...@@ -65,7 +65,7 @@ static void bond_info_seq_stop(struct seq_file *seq, void *v)
static void bond_info_show_master(struct seq_file *seq) static void bond_info_show_master(struct seq_file *seq)
{ {
struct bonding *bond = seq->private; struct bonding *bond = seq->private;
struct bond_opt_value *optval; const struct bond_opt_value *optval;
struct slave *curr; struct slave *curr;
int i; int i;
......
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