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: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6f542efcbc
commit
28f084cca3
@@ -94,14 +94,15 @@ struct bond_option {
|
||||
*/
|
||||
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,
|
||||
struct bond_opt_value *val);
|
||||
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,
|
||||
struct bond_opt_value *val);
|
||||
struct bond_opt_value *val);
|
||||
const struct bond_option *bond_opt_get(unsigned int option);
|
||||
const struct bond_opt_value *bond_opt_get_val(unsigned int option, u64 val);
|
||||
|
||||
|
Reference in New Issue
Block a user