aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bond_options.h
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2014-03-06 17:20:17 -0500
committerDavid S. Miller <davem@davemloft.net>2014-03-06 17:39:19 -0500
commit28f084cca35a73698568d8c060bbb98193021db5 (patch)
treea2266adda9ac371139060ba23c8df3ea5b674cbc /drivers/net/bonding/bond_options.h
parent6f542efcbc74801eb4bfa0dbba64c2df6811b2d3 (diff)
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>
Diffstat (limited to 'drivers/net/bonding/bond_options.h')
-rw-r--r--drivers/net/bonding/bond_options.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/bonding/bond_options.h b/drivers/net/bonding/bond_options.h
index 6c5ba0ffc31c..12be9e1bfb0c 100644
--- a/drivers/net/bonding/bond_options.h
+++ b/drivers/net/bonding/bond_options.h
@@ -94,14 +94,15 @@ struct bond_option {
94 */ 94 */
95 const struct bond_opt_value *values; 95 const struct bond_opt_value *values;
96 96
97 int (*set)(struct bonding *bond, struct bond_opt_value *val); 97 int (*set)(struct bonding *bond, const struct bond_opt_value *val);
98}; 98};
99 99
100int __bond_opt_set(struct bonding *bond, unsigned int option, 100int __bond_opt_set(struct bonding *bond, unsigned int option,
101 struct bond_opt_value *val); 101 struct bond_opt_value *val);
102int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf); 102int bond_opt_tryset_rtnl(struct bonding *bond, unsigned int option, char *buf);
103
103const struct bond_opt_value *bond_opt_parse(const struct bond_option *opt, 104const struct bond_opt_value *bond_opt_parse(const struct bond_option *opt,
104 struct bond_opt_value *val); 105 struct bond_opt_value *val);
105const struct bond_option *bond_opt_get(unsigned int option); 106const struct bond_option *bond_opt_get(unsigned int option);
106const struct bond_opt_value *bond_opt_get_val(unsigned int option, u64 val); 107const struct bond_opt_value *bond_opt_get_val(unsigned int option, u64 val);
107 108